From 2e8941e515f2aa82e7776a799999757da74446fd Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Fri, 15 Jun 2012 21:34:29 -0700 Subject: [PATCH] Added iOS/OSX platform defines. --- include/bx/platform.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/bx/platform.h b/include/bx/platform.h index e98eb75..18d36a2 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -11,8 +11,10 @@ #define BX_COMPILER_MSVC 0 #define BX_PLATFORM_ANDROID 0 +#define BX_PLATFORM_IOS 0 #define BX_PLATFORM_LINUX 0 #define BX_PLATFORM_NACL 0 +#define BX_PLATFORM_OSX 0 #define BX_PLATFORM_WINDOWS 0 #define BX_PLATFORM_XBOX360 0 @@ -59,6 +61,12 @@ #elif defined(__linux__) # undef BX_PLATFORM_LINUX # define BX_PLATFORM_LINUX 1 +#elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) +# undef BX_PLATFORM_IOS +# define BX_PLATFORM_IOS 1 +#elif defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) +# undef BX_PLATFORM_OSX +# define BX_PLATFORM_OSX 1 #else # error "BX_PLATFORM_* is not defined!" #endif //