瀏覽代碼

Whoops, it's malloc.h, not alloca.h ...

Ryan C. Gordon 18 年之前
父節點
當前提交
782bb8a06f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      physfs_internal.h

+ 2 - 2
physfs_internal.h

@@ -22,8 +22,8 @@
 #define assert(x)
 #endif
 
-#ifdef __MINGW32__
-#include <alloca.h>
+#if defined(_MSC_VER) || defined(__MINGW32__)
+#include <malloc.h>
 #endif
 
 #ifdef __cplusplus