Fixed missing alloc macro on mingw32, I think. stable-1.0
authorRyan C. Gordon <icculus@icculus.org>
Thu, 12 Jul 2007 08:58:09 +0000
branchstable-1.0
changeset 902 a1bb05972265
parent 900 c5172fa2c5e6
child 904 3c0531ffd64b
Fixed missing alloc macro on mingw32, I think.
CHANGELOG
physfs_internal.h
--- a/CHANGELOG	Wed Jul 11 22:11:29 2007 +0000
+++ b/CHANGELOG	Thu Jul 12 08:58:09 2007 +0000
@@ -4,6 +4,7 @@
 
 -- stuff in the stable-1.0 branch, backported from 2.0.0 dev branch, etc ---
 
+07122007 - Maybe fixed compile on mingw32.
 07112007 - Fixed crash on zero-byte read/write (thanks, Ensiform!).
 05052007 - Fixed zip archiver: could do bogus seek if a small, non-zip file
            got put through isArchive().
--- a/physfs_internal.h	Wed Jul 11 22:11:29 2007 +0000
+++ b/physfs_internal.h	Thu Jul 12 08:58:09 2007 +0000
@@ -22,6 +22,10 @@
 #define assert(x)
 #endif
 
+#ifdef __MINGW32__
+#include <alloca.h>
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif