From 34de6b437b6fba51614e35039dce5d5f8ff37946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Mon, 22 Jan 2024 13:56:21 +0100 Subject: [PATCH] Fix iOS detection --- sqstdlib/sqstdsystem.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sqstdlib/sqstdsystem.cpp b/sqstdlib/sqstdsystem.cpp index d326be1..ee57960 100644 --- a/sqstdlib/sqstdsystem.cpp +++ b/sqstdlib/sqstdsystem.cpp @@ -5,6 +5,13 @@ #include #include +#if defined(__APPLE__) && !defined(IOS) +#include +#if TARGET_OS_IPHONE +#define IOS +#endif +#endif + #ifdef SQUNICODE #include #define scgetenv _wgetenv