Parcourir la source

Fix iOS detection

Jérôme Leclercq il y a 1 an
Parent
commit
34de6b437b
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  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