[ox] Fix to build with MinGW

This commit is contained in:
2018-05-05 02:34:55 -05:00
parent 1e82dacd6d
commit 610f6f4246
5 changed files with 24 additions and 27 deletions

View File

@@ -12,14 +12,14 @@
#include "types.hpp"
#if !defined(OX_USE_STDLIB)
#define ox_alloca(size) __builtin_alloca(size)
#elif defined(_MSC_VER)
#if defined(_MSC_VER)
#include <malloc.h>
#define ox_alloca(size) _alloca(size)
#elif __has_include(<alloca.h>)
#include <alloca.h>
#define ox_alloca(size) alloca(size)
#else
#define ox_alloca(size) __builtin_alloca(size)
#endif