autotools : define _WIN32 when compiling on Windows

Alexandre Goujon ale.goujon at gmail.com
Mon Mar 1 14:39:40 CST 2010


From: Alex <cerebro.alexiel at gmail.com>

---
 configure.ac |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index f7cf4b9..0796200 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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}
-- 
1.6.3.3




More information about the wine-patches mailing list