浏览代码

Fix iOS detection

Jérôme Leclercq 1 年之前
父节点
当前提交
34de6b437b
共有 1 个文件被更改,包括 7 次插入0 次删除
  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