Browse Source

Merge pull request #282 from SirLynix/patch-1

Fix iOS detection
Alberto Demichelis 1 year ago
parent
commit
c02bf2dfd5
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