1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-18 06:34:48 +00:00

Use __builtin_alloca if no other option.

This commit is contained in:
Calvin Rose 2022-06-18 13:54:47 -05:00
parent 589981bdcb
commit 1a1dd39367

View File

@ -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