Alexandre Julliard : makefiles: Define WINE_UNIX_LIB when building Unix libraries.

Alexandre Julliard julliard at winehq.org
Fri Sep 18 15:52:49 CDT 2020


Module: wine
Branch: master
Commit: 0b9c7eb295f568ffb1ec856bef2a99727a313736
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0b9c7eb295f568ffb1ec856bef2a99727a313736

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Sep 18 15:05:44 2020 +0200

makefiles: Define WINE_UNIX_LIB when building Unix libraries.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/makedep.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/makedep.c b/tools/makedep.c
index b7c26492eb..b3dd03645f 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -2384,6 +2384,7 @@ static struct strarray get_source_defines( struct makefile *make, struct incl_fi
         strarray_add( &ret, strmake( "-I%s", make->include_paths.str[i] ));
     strarray_addall( &ret, make->define_args );
     strarray_addall( &ret, get_expanded_file_local_var( make, obj, "EXTRADEFS" ));
+    if ((source->file->flags & FLAG_C_UNIX) && *dll_ext) strarray_add( &ret, "-DWINE_UNIX_LIB" );
     return ret;
 }
 




More information about the wine-cvs mailing list