mirror of
https://github.com/janet-lang/janet
synced 2025-01-12 08:30:26 +00:00
Use __builtin_alloca if no other option.
This commit is contained in:
parent
589981bdcb
commit
1a1dd39367
@ -32,6 +32,9 @@
|
|||||||
#define alloca _alloca
|
#define alloca _alloca
|
||||||
#elif defined(JANET_LINUX)
|
#elif defined(JANET_LINUX)
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#elif !defined(alloca)
|
||||||
|
/* Last ditch effort to get alloca - works for gcc and clang */
|
||||||
|
#define alloca __builtin_alloca
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define JANET_FFI_MAX_RECUR 64
|
#define JANET_FFI_MAX_RECUR 64
|
||||||
|
Loading…
Reference in New Issue
Block a user