mirror of
https://github.com/janet-lang/janet
synced 2025-10-20 02:07:40 +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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user