Alloca included by default on some OS, but not all.

Do explcitly include alloca on non-msvc compilers.
This commit is contained in:
Calvin Rose 2022-06-08 10:01:19 -05:00
parent 9d9cb378ff
commit 6f90df26a5
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@
#include <errno.h>
#include <stddef.h>
#ifndef _MSC_VER
#include <alloca.h>
#endif
#if !defined(JANET_REDUCED_OS) || !defined(JANET_SINGLE_THREADED)
#include <time.h>
#define JANET_GETTIME