diff options
author | Bastiaan Olij <mux213@gmail.com> | 2020-06-02 20:53:42 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 20:53:42 +1000 |
commit | 165f1f30e875a4d4199529baeff3ba62bf4b7d11 (patch) | |
tree | c8c5c8e7636060b8cc2e0fce38b9e9132bdfa786 | |
parent | e2a5fdee3bbd7223ba7e7013e90486723a7de15c (diff) | |
parent | 9e37b873af0de19a2dccd19a7eadd92e3a5e3f62 (diff) | |
download | redot-cpp-165f1f30e875a4d4199529baeff3ba62bf4b7d11.tar.gz |
Merge pull request #383 from Zylann/fix_alloca
Fix alloca() not being included on some platforms
-rw-r--r-- | include/core/Defs.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/Defs.hpp b/include/core/Defs.hpp index fb0a18b..1b4923e 100644 --- a/include/core/Defs.hpp +++ b/include/core/Defs.hpp @@ -61,6 +61,11 @@ 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__) +#include <alloca.h> +#endif + typedef float real_t; #define CMP_EPSILON 0.00001 |