Quellcode durchsuchen

Fix alloca.h error in Defs.h

Duncan Sparks vor 5 Jahren
Ursprung
Commit
5c96e5ede5
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      include/core/Defs.hpp

+ 3 - 1
include/core/Defs.hpp

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