Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d4dfcc1f
Commit
d4dfcc1f
authored
Apr 19, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: On x86-64, don't define twice the fastcall macros.
parent
285200b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
winegcc.c
tools/winegcc/winegcc.c
+7
-2
No files found.
tools/winegcc/winegcc.c
View file @
d4dfcc1f
...
...
@@ -360,6 +360,7 @@ static void compile(struct options* opts, const char* lang)
if
(
gcc_defs
)
{
int
fastcall_done
=
0
;
if
(
opts
->
target_cpu
==
CPU_x86_64
)
{
strarray_add
(
comp_args
,
"-D__stdcall=__attribute__((ms_abi))"
);
...
...
@@ -368,6 +369,7 @@ static void compile(struct options* opts, const char* lang)
strarray_add
(
comp_args
,
"-D_cdecl=__attribute__((ms_abi))"
);
strarray_add
(
comp_args
,
"-D__fastcall=__attribute__((ms_abi))"
);
strarray_add
(
comp_args
,
"-D_fastcall=__attribute__((ms_abi))"
);
fastcall_done
=
1
;
}
else
if
(
opts
->
target_platform
==
PLATFORM_APPLE
)
{
...
...
@@ -385,8 +387,11 @@ static void compile(struct options* opts, const char* lang)
strarray_add
(
comp_args
,
"-D_cdecl=__attribute__((__cdecl__))"
);
}
strarray_add
(
comp_args
,
"-D__fastcall=__attribute__((__fastcall__))"
);
strarray_add
(
comp_args
,
"-D_fastcall=__attribute__((__fastcall__))"
);
if
(
!
fastcall_done
)
{
strarray_add
(
comp_args
,
"-D__fastcall=__attribute__((__fastcall__))"
);
strarray_add
(
comp_args
,
"-D_fastcall=__attribute__((__fastcall__))"
);
}
strarray_add
(
comp_args
,
"-D__declspec(x)=__declspec_##x"
);
strarray_add
(
comp_args
,
"-D__declspec_align(x)=__attribute__((aligned(x)))"
);
strarray_add
(
comp_args
,
"-D__declspec_allocate(x)=__attribute__((section(x)))"
);
...
...
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