Explorar o código

stb_vorbis: Fix macro redefinition warning on MinGW.

David Reid %!s(int64=5) %!d(string=hai) anos
pai
achega
1d35dc8609
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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