Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4f266a88
Commit
4f266a88
authored
Mar 06, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Don't use underscore prefix on 64-bit Windows.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7d41cde7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
utils.c
tools/winebuild/utils.c
+6
-3
No files found.
tools/winebuild/utils.c
View file @
4f266a88
...
...
@@ -1039,8 +1039,10 @@ const char *asm_name( const char *sym )
switch
(
target_platform
)
{
case
PLATFORM_APPLE
:
case
PLATFORM_WINDOWS
:
if
(
target_cpu
!=
CPU_x86
)
return
sym
;
/* fall through */
case
PLATFORM_APPLE
:
if
(
sym
[
0
]
==
'.'
&&
sym
[
1
]
==
'L'
)
return
sym
;
free
(
buffer
);
buffer
=
strmake
(
"_%s"
,
sym
);
...
...
@@ -1061,7 +1063,7 @@ const char *func_declaration( const char *func )
return
""
;
case
PLATFORM_WINDOWS
:
free
(
buffer
);
buffer
=
strmake
(
".def
_%s; .scl 2; .type 32; .endef
"
,
func
);
buffer
=
strmake
(
".def
%s%s; .scl 2; .type 32; .endef"
,
target_cpu
==
CPU_x86
?
"_"
:
"
"
,
func
);
break
;
default:
free
(
buffer
);
...
...
@@ -1164,7 +1166,8 @@ const char *asm_globl( const char *func )
buffer
=
strmake
(
"
\t
.globl _%s
\n\t
.private_extern _%s
\n
_%s:"
,
func
,
func
,
func
);
break
;
case
PLATFORM_WINDOWS
:
buffer
=
strmake
(
"
\t
.globl _%s
\n
_%s:"
,
func
,
func
);
buffer
=
strmake
(
"
\t
.globl %s%s
\n
%s%s:"
,
target_cpu
==
CPU_x86
?
"_"
:
""
,
func
,
target_cpu
==
CPU_x86
?
"_"
:
""
,
func
);
break
;
default:
buffer
=
strmake
(
"
\t
.globl %s
\n\t
.hidden %s
\n
%s:"
,
func
,
func
,
func
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment