From bd6dc742bf1922d8bcc13d311c683bc22e6eaa74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 15 Mar 2015 20:57:46 -0700 Subject: [PATCH] Updated platforms. --- include/bx/platform.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/bx/platform.h b/include/bx/platform.h index 373c991..c3eda5f 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -19,11 +19,13 @@ #define BX_PLATFORM_LINUX 0 #define BX_PLATFORM_NACL 0 #define BX_PLATFORM_OSX 0 +#define BX_PLATFORM_PS4 0 #define BX_PLATFORM_QNX 0 #define BX_PLATFORM_RPI 0 #define BX_PLATFORM_WINDOWS 0 #define BX_PLATFORM_WINRT 0 #define BX_PLATFORM_XBOX360 0 +#define BX_PLATFORM_XBOXONE 0 #define BX_CPU_ARM 0 #define BX_CPU_JIT 0 @@ -120,6 +122,9 @@ #if defined(_XBOX_VER) # undef BX_PLATFORM_XBOX360 # define BX_PLATFORM_XBOX360 1 +#elif defined (_DURANGO) +# undef BX_PLATFORM_XBOXONE +# define BX_PLATFORM_XBOXONE 1 #elif defined(_WIN32) || defined(_WIN64) // http://msdn.microsoft.com/en-us/library/6sehtctf.aspx # ifndef NOMINMAX @@ -173,6 +178,9 @@ #elif defined(EMSCRIPTEN) # undef BX_PLATFORM_EMSCRIPTEN # define BX_PLATFORM_EMSCRIPTEN 1 +#elif defined(__ORBIS__) +# undef BX_PLATFORM_PS4 +# define BX_PLATFORM_PS4 1 #elif defined(__QNX__) # undef BX_PLATFORM_QNX # define BX_PLATFORM_QNX 1 @@ -242,6 +250,8 @@ BX_STRINGIZE(BX_PLATFORM_NACL) #elif BX_PLATFORM_OSX # define BX_PLATFORM_NAME "OSX" +#elif BX_PLATFORM_PS4 +# define BX_PLATFORM_NAME "PlayStation 4" #elif BX_PLATFORM_QNX # define BX_PLATFORM_NAME "QNX" #elif BX_PLATFORM_RPI @@ -250,6 +260,10 @@ # define BX_PLATFORM_NAME "Windows" #elif BX_PLATFORM_WINRT # define BX_PLATFORM_NAME "WinRT" +#elif BX_PLATFORM_XBOX360 +# define BX_PLATFORM_NAME "Xbox 360" +#elif BX_PLATFORM_XBOXONE +# define BX_PLATFORM_NAME "Xbox One" #endif // BX_PLATFORM_ #if BX_CPU_ARM