Hack to make this compile with Mingw32.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 11 Dec 2002 15:56:53 +0000
changeset 516 65c524ddd5ab
parent 515 b5475eea664f
child 517 5dd80de854c6
Hack to make this compile with Mingw32.
platform/win32.c
--- a/platform/win32.c	Wed Dec 11 15:39:07 2002 +0000
+++ b/platform/win32.c	Wed Dec 11 15:56:53 2002 +0000
@@ -23,8 +23,10 @@
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
-#ifdef _MSC_VER /* for Cygwin, etc. */
-#define alloca _alloca
+#if (defined _MSC_VER)
+    #define alloca(x) _alloca(x)
+#elif (defined MINGW)  /* scary...hopefully this is okay. */
+    #define alloca(x) __builtin_alloca(x) 
 #endif
 
 #define LOWORDER_UINT64(pos)       (PHYSFS_uint32)(pos & 0x00000000FFFFFFFF)