Browse Source

Fix iOS detection

Jérôme Leclercq 2 years ago
parent
commit
34de6b437b
1 changed files with 7 additions and 0 deletions
  1. 7 0
      sqstdlib/sqstdsystem.cpp

+ 7 - 0
sqstdlib/sqstdsystem.cpp

@@ -5,6 +5,13 @@
 #include <stdio.h>
 #include <sqstdsystem.h>
 
+#if defined(__APPLE__) && !defined(IOS)
+#include <TargetConditionals.h>
+#if TARGET_OS_IPHONE
+#define IOS
+#endif
+#endif
+
 #ifdef SQUNICODE
 #include <wchar.h>
 #define scgetenv _wgetenv