Some minor (albeit incomplete) MingW fixes.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 06 Sep 2005 06:25:48 +0000
changeset 748 e400ca09da17
parent 747 3da194b12f43
child 749 8cffa18efa85
Some minor (albeit incomplete) MingW fixes.
configure.in
platform/win32.c
--- a/configure.in	Tue Sep 06 06:24:42 2005 +0000
+++ b/configure.in	Tue Sep 06 06:25:48 2005 +0000
@@ -399,8 +399,13 @@
 AC_MSG_RESULT([$this_is_cygwin])
 
 AC_MSG_CHECKING([if this is mingw])
+if test x$target_os = xmingw32; then
+  this_is_mingw=yes
+fi
 if test x$target_os = xmingw32msvc; then
   this_is_mingw=yes
+fi
+if test x$this_is_mingw = xyes; then
   PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32"
   enable_cdrom=yes
   enable_pthreads=no
--- a/platform/win32.c	Tue Sep 06 06:24:42 2005 +0000
+++ b/platform/win32.c	Tue Sep 06 06:25:48 2005 +0000
@@ -25,7 +25,7 @@
 
 #if (defined _MSC_VER)
     #define alloca(x) _alloca(x)
-#elif (defined MINGW)  /* scary...hopefully this is okay. */
+#elif (defined __MINGW32__)  /* scary...hopefully this is okay. */
     #define alloca(x) __builtin_alloca(x) 
 #endif