summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/slang.h b/slang.h
index 0de215a33..dd078bd05 100644
--- a/slang.h
+++ b/slang.h
@@ -96,10 +96,13 @@ Operating system defines, see http://sourceforge.net/p/predef/wiki/OperatingSyst
# define SLANG_ANDROID 1
# elif defined(__linux__) || defined(__CYGWIN__) /* note: __ANDROID__ implies __linux__ */
# define SLANG_LINUX 1
-# elif defined(__APPLE__) && (defined(__arm__) || defined(__arm64__))
-# define SLANG_IOS 1
# elif defined(__APPLE__)
-# define SLANG_OSX 1
+# include "TargetConditionals.h"
+# if TARGET_OS_MAC
+# define SLANG_OSX 1
+# else
+# define SLANG_IOS 1
+# endif
# elif defined(__CELLOS_LV2__)
# define SLANG_PS3 1
# elif defined(__ORBIS__)