iOS: Fix simulator build

This commit is contained in:
Alex Szpakowski
2021-05-30 16:04:37 -03:00
parent aa8ed7c8c5
commit f20c637dd6
+6
View File
@@ -29,6 +29,12 @@ static void loveSTBIAssert(bool test, const char *teststr)
throw love::Exception("Could not decode image (stb_image assertion '%s' failed)", teststr);
}
// Workaround when building for iOS Simulator with deployment target=8.0
#include "common/config.h"
#if defined(LOVE_IOS) && defined(TARGET_OS_SIMULATOR)
#define STBI_NO_THREAD_LOCALS
#endif
// stb_image
#define STBI_ONLY_JPEG
// #define STBI_ONLY_PNG