From 4963448726f8cc4d1ad3d83fe3be862199f4f1e1 Mon Sep 17 00:00:00 2001 From: Infatum Date: Thu, 20 Apr 2017 15:49:36 +0300 Subject: [PATCH] fix: Build on MinGW32 --- stb.h | 2 ++ stb_vorbis.c | 1 + 2 files changed, 3 insertions(+) diff --git a/stb.h b/stb.h index edd2e1b..70c0899 100644 --- a/stb.h +++ b/stb.h @@ -193,6 +193,8 @@ CREDITS Tim Sjostrand */ +#include + #ifndef STB__INCLUDE_STB_H #define STB__INCLUDE_STB_H diff --git a/stb_vorbis.c b/stb_vorbis.c index 1181e6d..233522a 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -576,6 +576,7 @@ enum STBVorbisError #undef __forceinline #endif #define __forceinline +#define alloca __builtin_alloca #elif !defined(_MSC_VER) #if __GNUC__ #define __forceinline inline