[ox/std] Fix new.hpp to correctly look for includes under MinGW
This commit is contained in:
parent
423f575386
commit
1e82dacd6d
9
deps/ox/src/ox/std/new.hpp
vendored
9
deps/ox/src/ox/std/new.hpp
vendored
@ -12,13 +12,12 @@
|
|||||||
|
|
||||||
#include "types.hpp"
|
#include "types.hpp"
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if !defined(OX_USE_STDLIB)
|
||||||
|
#define ox_alloca(size) __builtin_alloca(size)
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#define ox_alloca(size) _alloca(size)
|
#define ox_alloca(size) _alloca(size)
|
||||||
#elif !defined(OX_USE_STDLIB)
|
#elif __has_include(<alloca.h>)
|
||||||
#define ox_alloca(size) __builtin_alloca(size)
|
|
||||||
#else
|
|
||||||
#include <cstdlib>
|
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
#define ox_alloca(size) alloca(size)
|
#define ox_alloca(size) alloca(size)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user