added import in order for alloca to work on macos (#1710)

This commit is contained in:
Saikyun 2021-04-06 21:42:00 +02:00 committed by GitHub
parent 6d3c66a179
commit fd663024ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -570,7 +570,7 @@ enum STBVorbisError
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <malloc.h>
#endif
#if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__)
#if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) || defined(__APPLE__)
#include <alloca.h>
#endif
#else // STB_VORBIS_NO_CRT