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
912fd620
Commit
912fd620
authored
Jun 12, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Define WINE_UNIX_LIB for all files that are built for Unix.
parent
93630ce1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
configure
configure
+1
-1
configure.ac
configure.ac
+1
-1
windef.h
include/windef.h
+5
-1
makedep.c
tools/makedep.c
+1
-1
No files found.
configure
View file @
912fd620
...
...
@@ -23023,7 +23023,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
wine_fn_output_makedep ()
{
as_dir=tools; as_fn_mkdir_p
$CC
-I
${
wine_srcdir
}
tools -Iinclude -I
${
wine_srcdir
}
include -D__WINESRC__
$EXTRACFLAGS
$CPPFLAGS
$CFLAGS
-o tools/makedep
$ac_exeext
${
wine_srcdir
}
tools/makedep.c
$LDFLAGS
$CC
-I
${
wine_srcdir
}
tools -Iinclude -I
${
wine_srcdir
}
include -D__WINESRC__
-DWINE_UNIX_LIB
$EXTRACFLAGS
$CPPFLAGS
$CFLAGS
-o tools/makedep
$ac_exeext
${
wine_srcdir
}
tools/makedep.c
$LDFLAGS
}
wine_fn_output_makefile ()
{
...
...
configure.ac
View file @
912fd620
...
...
@@ -3462,7 +3462,7 @@ then
[wine_fn_output_makedep ()
{
AS_MKDIR_P(tools)
$CC -I${wine_srcdir}tools -Iinclude -I${wine_srcdir}include -D__WINESRC__ $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext ${wine_srcdir}tools/makedep.c $LDFLAGS
$CC -I${wine_srcdir}tools -Iinclude -I${wine_srcdir}include -D__WINESRC__
-DWINE_UNIX_LIB
$EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext ${wine_srcdir}tools/makedep.c $LDFLAGS
}])
fi
...
...
include/windef.h
View file @
912fd620
...
...
@@ -54,11 +54,13 @@ extern "C" {
# endif
#endif
#if !defined(_MSC_VER) && !defined(__MINGW32__)
#ifdef WINE_UNIX_LIB
# define __stdcall
# define __cdecl
# define __fastcall
#el
if !defined(_MSC_VER) && !defined(__MINGW32__)
#el
se
# undef __stdcall
# ifdef __i386__
# ifdef __GNUC__
...
...
@@ -99,6 +101,8 @@ extern "C" {
# ifndef __thiscall
# define __thiscall __stdcall
# endif
#endif
/* WINE_UNIX_LIB */
#endif
/* _MSC_VER || __MINGW32__ */
#ifndef __ms_va_list
...
...
tools/makedep.c
View file @
912fd620
...
...
@@ -2351,7 +2351,6 @@ static struct strarray get_source_defines( struct makefile *make, struct incl_fi
}
strarray_addall
(
&
ret
,
make
->
define_args
);
strarray_addall
(
&
ret
,
get_expanded_file_local_var
(
make
,
obj
,
"EXTRADEFS"
));
if
(
source
->
file
->
flags
&
FLAG_C_UNIX
)
strarray_add
(
&
ret
,
"-DWINE_UNIX_LIB"
);
return
ret
;
}
...
...
@@ -4247,6 +4246,7 @@ static void load_sources( struct makefile *make )
make
->
define_args
=
empty_strarray
;
make
->
unix_cflags
=
empty_strarray
;
if
(
!
make
->
extlib
)
strarray_add
(
&
make
->
define_args
,
"-D__WINESRC__"
);
strarray_add
(
&
make
->
unix_cflags
,
"-DWINE_UNIX_LIB"
);
value
=
get_expanded_make_var_array
(
make
,
"EXTRAINCL"
);
for
(
i
=
0
;
i
<
value
.
count
;
i
++
)
...
...
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