From 9d9cb378fffeb58ca4feb97bce6c43156620cbf9 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Wed, 8 Jun 2022 09:59:13 -0500 Subject: [PATCH] Don't include alloca.h, not in MSVC. --- src/core/ffi.c | 4 ++++ src/core/util.h | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/ffi.c b/src/core/ffi.c index 89230ab9..384e44bb 100644 --- a/src/core/ffi.c +++ b/src/core/ffi.c @@ -28,6 +28,10 @@ #ifdef JANET_FFI +#ifdef _MSC_VER +#define alloca _alloca +#endif + typedef enum { JANET_FFI_TYPE_VOID, JANET_FFI_TYPE_SHORT, diff --git a/src/core/util.h b/src/core/util.h index 69d9f358..2fb597e1 100644 --- a/src/core/util.h +++ b/src/core/util.h @@ -32,7 +32,6 @@ #include #include #include -#include /* for ffi */ #if !defined(JANET_REDUCED_OS) || !defined(JANET_SINGLE_THREADED) #include