I thought I could define STB_VORBIS_NO_CRT and redefine malloc/free as described here, but that page seems to be out-of-date; allocation functions are always stubbed in that mode. #define malloc... should at least be guarded by an 'ifdef'.
Aside: #define realloc(s) 0 is wrong; realloc has two parameters.
I thought I could define
STB_VORBIS_NO_CRT
and redefine malloc/free as described here, but that page seems to be out-of-date; allocation functions are always stubbed in that mode.#define malloc...
should at least be guarded by an 'ifdef'.Aside:
#define realloc(s) 0
is wrong; realloc has two parameters.