1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 01:37:19 +00:00

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

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