ref: 043e7f53033b8ed8fd9b04f719e08c5cf23409e5
parent: 5e6047bd1eacd57bb4e3164110b1c043f8ed30f1
author: Diego Biurrun <diego@biurrun.de>
date: Thu Feb 14 12:43:46 EST 2013
build: Add -mwin32 to CFLAGS on Cygwin instead of globally defining WIN32 It's better to have gcc enable all Windows-related flags and adjust its behavior in a predictable fashion, rather than do parts of it manually.
--- a/configure.ac
+++ b/configure.ac
@@ -56,7 +56,7 @@
CFLAGS="${CFLAGS} -no-cpp-precomp"
;;
x*cygwin*)
- AC_DEFINE(WIN32, 1, Using Win32.)
+ CFLAGS="${CFLAGS} -mwin32"
;;
xos2*)
LDFLAGS="-Zbin-files"