Expand stb_image thread-local workaround to apply to iOS devices

This commit is contained in:
Alex Szpakowski
2021-05-30 21:12:45 -03:00
parent df4519873c
commit d419795a28
+2 -2
View File
@@ -29,9 +29,9 @@ 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
// Workaround when building for iOS with deployment target=8.0
#include "common/config.h"
#if defined(LOVE_IOS) && TARGET_OS_SIMULATOR == 1
#if defined(LOVE_IOS)
#define STBI_NO_THREAD_LOCALS
#endif