[ox] Fix to build with MinGW
This commit is contained in:
6
deps/ox/src/ox/std/new.hpp
vendored
6
deps/ox/src/ox/std/new.hpp
vendored
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user