Fixed missing alloc macro on mingw32, I think.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 12 Jul 2007 08:58:09 +0000
changeset 903 f5bad51e0f93
parent 901 6dbb6a4e27a9
child 905 8006327f5797
Fixed missing alloc macro on mingw32, I think.
CHANGELOG.txt
physfs_internal.h
--- a/CHANGELOG.txt	Wed Jul 11 22:11:29 2007 +0000
+++ b/CHANGELOG.txt	Thu Jul 12 08:58:09 2007 +0000
@@ -2,6 +2,7 @@
  * CHANGELOG.
  */
 
+07122007 - Maybe fixed compile on mingw32.
 07112007 - Fixed crash on zero-byte read/write (thanks, Ensiform!).
 05272007 - FIXME removal: Replaced a strncpy() with a memcpy().
 05112007 - Minor documentation correction.
--- a/physfs_internal.h	Wed Jul 11 22:11:29 2007 +0000
+++ b/physfs_internal.h	Thu Jul 12 08:58:09 2007 +0000
@@ -29,6 +29,10 @@
 #include <malloc.h>
 #endif
 
+#ifdef __MINGW32__
+#include <alloca.h>
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif