From 9edf2bcc345104b492b795dd34950e1e7943118a Mon Sep 17 00:00:00 2001 From: ruevs Date: Fri, 29 Sep 2023 16:01:07 +0300 Subject: [PATCH] Win32: Fix for compiling with MinGW.org GCC-6.3.0-1 MinGW-w64 MinGW-Builds 13.1.0 on the other hand does not need this. --- src/platform/platform.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platform/platform.cpp b/src/platform/platform.cpp index 82ce2d30..6ad19dcf 100644 --- a/src/platform/platform.cpp +++ b/src/platform/platform.cpp @@ -645,6 +645,12 @@ std::vector InitCli(int argc, char **argv) { #if defined(WIN32) +#if !defined(_alloca) +// Fix for compiling with MinGW.org GCC-6.3.0-1 +#define _alloca alloca +#include +#endif + void DebugPrint(const char *fmt, ...) { va_list va;