mirror of
https://github.com/janet-lang/janet
synced 2024-12-24 07:20:27 +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
|
||||
#elif defined(JANET_LINUX)
|
||||
#include <alloca.h>
|
||||
#elif !defined(alloca)
|
||||
/* Last ditch effort to get alloca - works for gcc and clang */
|
||||
#define alloca __builtin_alloca
|
||||
#endif
|
||||
|
||||
#define JANET_FFI_MAX_RECUR 64
|
||||
|
Loading…
Reference in New Issue
Block a user