diff options
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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__) |
