浏览代码

Fix alloca.h error in Defs.h

Duncan Sparks 5 年之前
父节点
当前提交
5c96e5ede5
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      include/core/Defs.hpp

+ 3 - 1
include/core/Defs.hpp

@@ -62,8 +62,10 @@ enum class Error {
 #include <GodotGlobal.hpp>
 
 // alloca() is non-standard. When using MSVC, it's in malloc.h.
-#if defined(__linux__) || defined(__APPLE__) || defined(__MINGW32__)
+#if defined(__linux__) || defined(__APPLE__)
 #include <alloca.h>
+#else
+#include <malloc.h>
 #endif
 
 typedef float real_t;