Bläddra i källkod

emscripten needs explicit alloca as well

Sean Barrett 9 år sedan
förälder
incheckning
92bd7a49a8
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      stb_vorbis.c

+ 1 - 1
stb_vorbis.c

@@ -552,7 +552,7 @@ enum STBVorbisError
 #include <math.h>
 #include <math.h>
 #if !(defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh))
 #if !(defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh))
 #include <malloc.h>
 #include <malloc.h>
-#if defined(__linux__) || defined(__linux)
+#if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__)
 #include <alloca.h>
 #include <alloca.h>
 #endif
 #endif
 #endif
 #endif