Przeglądaj źródła

Merge branch 'alloca-fix' of https://github.com/mackron/stb into test

Sean Barrett 5 lat temu
rodzic
commit
cae97bdb17
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      stb_vorbis.c

+ 2 - 0
stb_vorbis.c

@@ -599,7 +599,9 @@ enum STBVorbisError
    #undef __forceinline
    #endif
    #define __forceinline
+   #ifndef alloca
    #define alloca __builtin_alloca
+   #endif
 #elif !defined(_MSC_VER)
    #if __GNUC__
       #define __forceinline inline