summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/core/Defs.hpp5
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