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
1 changed files with 3 additions and 0 deletions

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