configure: Define _WIN32 when compiling on Windows.
authorAlexandre Goujon <ale.goujon@gmail.com>
Mon, 1 Mar 2010 20:39:40 +0000 (21:39 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 2 Mar 2010 10:37:05 +0000 (11:37 +0100)
configure
configure.ac

index dacc6fc4387516048e4bae3b958a375b1a50b2c3..5ecb68f851f0e499b3a8f2f23f54cdd6c16aa2a5 100755 (executable)
--- a/configure
+++ b/configure
@@ -4104,6 +4104,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     ;;
   *-mingw32*|*-cygwin*)
     enable_win16=${enable_win16:-no}
+    CFLAGS="$CFLAGS -D_WIN32"
     ;;
   i[3456789]86*)
     enable_win16=${enable_win16:-yes}
index f7cf4b9137c42238e4b34e782669f6ba1172c907..07962005717aea6e2be11ec64e1df649fb744f2c 100644 (file)
@@ -165,6 +165,7 @@ case $host in
     ;;
   *-mingw32*|*-cygwin*)
     enable_win16=${enable_win16:-no}
+    CFLAGS="$CFLAGS -D_WIN32"
     ;;
   i[[3456789]]86*)
     enable_win16=${enable_win16:-yes}