diff options
author | Duncan Sparks <duncan.sprks@gmail.com> | 2020-06-17 11:45:19 -0700 |
---|---|---|
committer | Duncan Sparks <duncan.sprks@gmail.com> | 2020-06-17 15:24:08 -0700 |
commit | 5c96e5ede5dd9adf0c744c9a425ecb0fc2a2729c (patch) | |
tree | 205fed40f60b30f424148deb8626cfe47d681503 /include/core/Defs.hpp | |
parent | 9eceb16f0553884094d0f659461649be5d333866 (diff) | |
download | redot-cpp-5c96e5ede5dd9adf0c744c9a425ecb0fc2a2729c.tar.gz |
Fix alloca.h error in Defs.h
Diffstat (limited to 'include/core/Defs.hpp')
-rw-r--r-- | include/core/Defs.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/Defs.hpp b/include/core/Defs.hpp index 1b4923e..9981afe 100644 --- a/include/core/Defs.hpp +++ b/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; |