1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-03 08:19:41 +00:00

makefiles: Define WINE_UNIX_LIB for all files that are built for Unix.

This commit is contained in:
Alexandre Julliard 2023-06-12 11:11:44 +02:00
parent 93630ce14e
commit 912fd620db
4 changed files with 8 additions and 4 deletions

2
configure vendored
View File

@ -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 ()
{

View File

@ -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

View File

@ -54,11 +54,13 @@ extern "C" {
# endif
#endif
#if !defined(_MSC_VER) && !defined(__MINGW32__)
#ifdef WINE_UNIX_LIB
# define __stdcall
# define __cdecl
# define __fastcall
#elif !defined(_MSC_VER) && !defined(__MINGW32__)
#else
# 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

View File

@ -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++)