Browse Source

Merge branch 'fix_alloca' of https://github.com/Clownacy/stb into working

Sean Barrett 5 năm trước cách đây
mục cha
commit
58b2e1490d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      stb_vorbis.c

+ 2 - 1
stb_vorbis.c

@@ -32,6 +32,7 @@
 //    github:manxorist   saga musix          github:infatum
 //    github:manxorist   saga musix          github:infatum
 //    Timur Gagiev       Maxwell Koo         Peter Waller
 //    Timur Gagiev       Maxwell Koo         Peter Waller
 //    github:audinowho   Dougall Johnson     David Reid
 //    github:audinowho   Dougall Johnson     David Reid
+//    github:Clownacy
 //
 //
 // Partial history:
 // Partial history:
 //    1.19    - 2020-02-05 - warnings
 //    1.19    - 2020-02-05 - warnings
@@ -577,7 +578,7 @@ enum STBVorbisError
    #if defined(_MSC_VER) || defined(__MINGW32__)
    #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__) || defined(__NEWLIB__)
       #include <alloca.h>
       #include <alloca.h>
    #endif
    #endif
 #else // STB_VORBIS_NO_CRT
 #else // STB_VORBIS_NO_CRT