Pārlūkot izejas kodu

Fixed missing alloc macro on mingw32, I think.

Ryan C. Gordon 18 gadi atpakaļ
vecāks
revīzija
8d1003ce7f
2 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 1 0
      CHANGELOG
  2. 4 0
      physfs_internal.h

+ 1 - 0
CHANGELOG

@@ -4,6 +4,7 @@
 
 
 -- stuff in the stable-1.0 branch, backported from 2.0.0 dev branch, etc ---
 -- 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!).
 07112007 - Fixed crash on zero-byte read/write (thanks, Ensiform!).
 05052007 - Fixed zip archiver: could do bogus seek if a small, non-zip file
 05052007 - Fixed zip archiver: could do bogus seek if a small, non-zip file
            got put through isArchive().
            got put through isArchive().

+ 4 - 0
physfs_internal.h

@@ -22,6 +22,10 @@
 #define assert(x)
 #define assert(x)
 #endif
 #endif
 
 
+#ifdef __MINGW32__
+#include <alloca.h>
+#endif
+
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {
 #endif
 #endif