1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 08:20:27 +00:00

Don't include alloca.h, not in MSVC.

This commit is contained in:
Calvin Rose 2022-06-08 09:59:13 -05:00
parent f92aac14aa
commit 9d9cb378ff
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,10 @@
#ifdef JANET_FFI
#ifdef _MSC_VER
#define alloca _alloca
#endif
typedef enum {
JANET_FFI_TYPE_VOID,
JANET_FFI_TYPE_SHORT,

View File

@ -32,7 +32,6 @@
#include <stdio.h>
#include <errno.h>
#include <stddef.h>
#include <alloca.h> /* for ffi */
#if !defined(JANET_REDUCED_OS) || !defined(JANET_SINGLE_THREADED)
#include <time.h>