summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorCraig Kolb <craig.kolb@gmail.com>2022-05-04 16:13:35 -0700
committerGitHub <noreply@github.com>2022-05-04 19:13:35 -0400
commitef314f1b417e92b2fd27e3ed7f504a711c49231b (patch)
treef6c6a806c91ba9ce3cdf0fd60f7a9f53a7db2ea4 /slang.h
parentb9c11260e07b9e4bac6518a1f4eeaf241ac7e397 (diff)
Enable building for aarch64 on MacOS (#2219)
Co-authored-by: Theresa Foley <10618364+tangent-vector@users.noreply.github.com> Co-authored-by: jsmall-nvidia <jsmall@nvidia.com>
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__)