|
|
|
@ -553,12 +553,14 @@ enum STBVorbisError |
|
|
|
|
#include <string.h> |
|
|
|
|
#include <assert.h> |
|
|
|
|
#include <math.h> |
|
|
|
|
#if !(defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh)) |
|
|
|
|
|
|
|
|
|
// find definition of alloca if it's not in stdlib.h:
|
|
|
|
|
#ifdef _MSC_VER |
|
|
|
|
#include <malloc.h> |
|
|
|
|
#endif |
|
|
|
|
#if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) |
|
|
|
|
#include <alloca.h> |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
#else // STB_VORBIS_NO_CRT
|
|
|
|
|
#define NULL 0 |
|
|
|
|
#define malloc(s) 0 |
|
|
|
|