stb_vorbis: MinGW has alloca defined in malloc.h.

Fixes issue #461.
master
Fabian Giesen ago%!(EXTRA string=8 years)
parent 423298e071
commit 2da81a6433
  1. 2
      stb_vorbis.c

@ -551,7 +551,7 @@ enum STBVorbisError
#include <math.h> #include <math.h>
// find definition of alloca if it's not in stdlib.h: // find definition of alloca if it's not in stdlib.h:
#ifdef _MSC_VER #if defined(_MSC_VER) || defined(__MINGW32__)
#include <malloc.h> #include <malloc.h>
#endif #endif
#if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) #if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__)

Loading…
Cancel
Save