From 2da81a64339386bb1cb1548d2ebcbd3e997f0bbf Mon Sep 17 00:00:00 2001 From: Fabian Giesen Date: Sat, 22 Jul 2017 14:39:52 -0700 Subject: [PATCH] stb_vorbis: MinGW has alloca defined in malloc.h. Fixes issue #461. --- stb_vorbis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_vorbis.c b/stb_vorbis.c index 1181e6d..d7ee5e4 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -551,7 +551,7 @@ enum STBVorbisError #include // find definition of alloca if it's not in stdlib.h: - #ifdef _MSC_VER + #if defined(_MSC_VER) || defined(__MINGW32__) #include #endif #if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__)