mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 09:47:17 +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:
parent
9d9cb378ff
commit
6f90df26a5
@ -33,6 +33,10 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(JANET_REDUCED_OS) || !defined(JANET_SINGLE_THREADED)
|
#if !defined(JANET_REDUCED_OS) || !defined(JANET_SINGLE_THREADED)
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#define JANET_GETTIME
|
#define JANET_GETTIME
|
||||||
|
Loading…
Reference in New Issue
Block a user