Browse Source

fix includes for linux alloca

Sean Barrett 9 years ago
parent
commit
75c5908f95
1 changed files with 3 additions and 0 deletions
  1. 3 0
      stb_vorbis.c

+ 3 - 0
stb_vorbis.c

@@ -552,6 +552,9 @@ enum STBVorbisError
 #include <math.h>
 #if !(defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh))
 #include <malloc.h>
+#if defined(__linux__) || defined(__linux)
+#include <alloca.h>
+#endif
 #endif
 #else // STB_VORBIS_NO_CRT
 #define NULL 0