From d419795a28048d3999a00b4f379eb446e01b9f6d Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 30 May 2021 21:12:45 -0300 Subject: [PATCH] Expand stb_image thread-local workaround to apply to iOS devices --- src/modules/image/magpie/STBHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/image/magpie/STBHandler.cpp b/src/modules/image/magpie/STBHandler.cpp index 876d6c2fb..5d335ed70 100644 --- a/src/modules/image/magpie/STBHandler.cpp +++ b/src/modules/image/magpie/STBHandler.cpp @@ -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