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
cfb6c8eb
Commit
cfb6c8eb
authored
Mar 11, 2005
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use -isystem for system includes as they should be processed after the
-I includes. Spotted by Boaz Harrosh.
parent
8435f6f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
winegcc.c
tools/winegcc/winegcc.c
+18
-9
No files found.
tools/winegcc/winegcc.c
View file @
cfb6c8eb
...
@@ -258,15 +258,7 @@ static void compile(struct options* opts, const char* lang)
...
@@ -258,15 +258,7 @@ static void compile(struct options* opts, const char* lang)
#endif
#endif
strarray_addall
(
comp_args
,
strarray_fromstring
(
DLLFLAGS
,
" "
));
strarray_addall
(
comp_args
,
strarray_fromstring
(
DLLFLAGS
,
" "
));
}
}
if
(
!
opts
->
wine_mode
&&
!
opts
->
nostdinc
)
{
if
(
opts
->
use_msvcrt
)
{
strarray_add
(
comp_args
,
"-I"
INCLUDEDIR
"/msvcrt"
);
strarray_add
(
comp_args
,
"-D__MSVCRT__"
);
}
strarray_add
(
comp_args
,
"-I"
INCLUDEDIR
"/windows"
);
}
strarray_add
(
comp_args
,
"-DWIN32"
);
strarray_add
(
comp_args
,
"-DWIN32"
);
strarray_add
(
comp_args
,
"-D_WIN32"
);
strarray_add
(
comp_args
,
"-D_WIN32"
);
strarray_add
(
comp_args
,
"-D__WIN32"
);
strarray_add
(
comp_args
,
"-D__WIN32"
);
...
@@ -331,6 +323,23 @@ static void compile(struct options* opts, const char* lang)
...
@@ -331,6 +323,23 @@ static void compile(struct options* opts, const char* lang)
strarray_add
(
comp_args
,
opts
->
files
->
base
[
j
]);
strarray_add
(
comp_args
,
opts
->
files
->
base
[
j
]);
}
}
/* standard includes come last in the include search path */
#ifdef __GNUC__
#define SYS_INCLUDE "-isystem"
#else
#define SYS_INCLUDE "-I"
#endif
if
(
!
opts
->
wine_mode
&&
!
opts
->
nostdinc
)
{
if
(
opts
->
use_msvcrt
)
{
strarray_add
(
comp_args
,
SYS_INCLUDE
INCLUDEDIR
"/msvcrt"
);
strarray_add
(
comp_args
,
"-D__MSVCRT__"
);
}
strarray_add
(
comp_args
,
SYS_INCLUDE
INCLUDEDIR
"/windows"
);
}
#undef SYS_INCLUDE
spawn
(
opts
->
prefix
,
comp_args
);
spawn
(
opts
->
prefix
,
comp_args
);
}
}
...
...
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