From b79154186967389463eb6aeb88fbb53bd8a5034c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 13 Nov 2022 07:35:58 +0100 Subject: only need to #define alloca on msvc --- compat/alloca.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/compat/alloca.hpp b/compat/alloca.hpp index 97969a55..ac4b6996 100644 --- a/compat/alloca.hpp +++ b/compat/alloca.hpp @@ -1,8 +1,10 @@ #pragma once #ifdef _WIN32 -# include -# define alloca _alloca +#include +#ifdef _MSC_VER +#define alloca _alloca +#endif #else -# include +#include #endif -- cgit v1.2.3