From 2362abe855895d90691d76e0de7828565c87a042 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 6 Sep 2005 06:25:48 +0000 Subject: [PATCH] Some minor (albeit incomplete) MingW fixes. --- configure.in | 5 +++++ platform/win32.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index bebf4815..206a2f66 100644 --- a/configure.in +++ b/configure.in @@ -399,8 +399,13 @@ fi 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 diff --git a/platform/win32.c b/platform/win32.c index 31bfd0c0..c24c5ca9 100644 --- a/platform/win32.c +++ b/platform/win32.c @@ -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