diff --git a/stb_vorbis.c b/stb_vorbis.c index ea753dfa4b2033f62cfcec5376af384245becf0b..904209fbfa4b5c1823020e64ecffdc52bd22f80d 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -4,7 +4,7 @@ // Original version written by Sean Barrett in 2007. // // Originally sponsored by RAD Game Tools. Seeking sponsored -// by Phillip Bennefall, Marc Andersen, Elias Software, vgstorm.com, +// by Phillip Bennefall, Marc Andersen, Aaron Baker, Elias Software, // Aras Pranckevicius, and Sean Barrett. // // LICENSE @@ -557,11 +557,24 @@ enum STBVorbisError #endif #else // STB_VORBIS_NO_CRT #define NULL 0 +#define malloc(s) 0 +#define free(s) ((void) 0) +#define realloc(s) 0 #endif // STB_VORBIS_NO_CRT #include -#if !defined(_MSC_VER) && !(defined(__MINGW32__) && defined(__forceinline)) +#ifdef __MINGW32__ + // eff you mingw: + // "fixed": + // http://sourceforge.net/p/mingw-w64/mailman/message/32882927/ + // "no that broke the build, reverted, who cares about C": + // http://sourceforge.net/p/mingw-w64/mailman/message/32890381/ + #ifdef __forceinline + #undef __forceinline + #endif + #define __forceinline +#elif !defined(_MSC_VER) #if __GNUC__ #define __forceinline inline #else diff --git a/tests/stb.dsp b/tests/stb.dsp index b4e1748208c8ab766ebb1462c14f476eb34c5726..3dcb5c9f69c4eca4ff84e720219242ed2d14e27f 100644 --- a/tests/stb.dsp +++ b/tests/stb.dsp @@ -130,6 +130,10 @@ SOURCE=..\stb_leakcheck.h # End Source File # Begin Source File +SOURCE=..\stb_malloc.h +# End Source File +# Begin Source File + SOURCE=..\stb_perlin.h # End Source File # Begin Source File