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
683e4554
Commit
683e4554
authored
Sep 23, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Always search the standard include dirs.
By analogy with the library dir search. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
08956bc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
winegcc.c
tools/winegcc/winegcc.c
+15
-5
No files found.
tools/winegcc/winegcc.c
View file @
683e4554
...
...
@@ -804,16 +804,26 @@ no_compat_defines:
/* standard includes come last in the include search path */
if
(
!
opts
->
wine_objdir
&&
!
opts
->
nostdinc
)
{
const
char
*
incl_dirs
[]
=
{
INCLUDEDIR
,
"/usr/include"
,
"/usr/local/include"
};
const
char
*
root
=
opts
->
isysroot
?
opts
->
isysroot
:
opts
->
sysroot
?
opts
->
sysroot
:
""
;
if
(
opts
->
use_msvcrt
)
{
strarray_add
(
comp_args
,
strmake
(
"%s%s%s/wine/msvcrt"
,
gcc_defs
?
"-isystem"
:
"-I"
,
root
,
INCLUDEDIR
));
for
(
j
=
0
;
j
<
ARRAY_SIZE
(
incl_dirs
);
j
++
)
{
if
(
j
&&
!
strcmp
(
incl_dirs
[
0
],
incl_dirs
[
j
]
))
continue
;
strarray_add
(
comp_args
,
strmake
(
"%s%s%s/wine/msvcrt"
,
gcc_defs
?
"-isystem"
:
"-I"
,
root
,
incl_dirs
[
j
]
));
}
strarray_add
(
comp_args
,
"-D__MSVCRT__"
);
}
strarray_add
(
comp_args
,
strmake
(
"-I%s%s"
,
root
,
INCLUDEDIR
));
strarray_add
(
comp_args
,
strmake
(
"%s%s%s/wine/windows"
,
gcc_defs
?
"-isystem"
:
"-I"
,
root
,
INCLUDEDIR
));
for
(
j
=
0
;
j
<
ARRAY_SIZE
(
incl_dirs
);
j
++
)
{
if
(
j
&&
!
strcmp
(
incl_dirs
[
0
],
incl_dirs
[
j
]
))
continue
;
strarray_add
(
comp_args
,
strmake
(
"-I%s%s"
,
root
,
incl_dirs
[
j
]
));
strarray_add
(
comp_args
,
strmake
(
"%s%s%s/wine/windows"
,
gcc_defs
?
"-isystem"
:
"-I"
,
root
,
incl_dirs
[
j
]
));
}
}
else
if
(
opts
->
wine_objdir
)
strarray_add
(
comp_args
,
strmake
(
"-I%s/include"
,
opts
->
wine_objdir
)
);
...
...
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