Merge pull request #383 from Zylann/fix_alloca

Fix alloca() not being included on some platforms
pull/409/head
Bastiaan Olij 2020-06-02 20:53:42 +10:00 committed by GitHub
commit 165f1f30e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

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