Fix alloca.h error in Defs.h

pull/415/head
Duncan Sparks 2020-06-17 11:45:19 -07:00
parent 9eceb16f05
commit 5c96e5ede5
No known key found for this signature in database
GPG Key ID: 90AA3A7F1180F4AC
1 changed files with 3 additions and 1 deletions

View File

@ -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;