Parcourir la source

Updated platforms.

Branimir Karadžić il y a 10 ans
Parent
commit
bd6dc742bf
1 fichiers modifiés avec 14 ajouts et 0 suppressions
  1. 14 0
      include/bx/platform.h

+ 14 - 0
include/bx/platform.h

@@ -19,11 +19,13 @@
 #define BX_PLATFORM_LINUX      0
 #define BX_PLATFORM_LINUX      0
 #define BX_PLATFORM_NACL       0
 #define BX_PLATFORM_NACL       0
 #define BX_PLATFORM_OSX        0
 #define BX_PLATFORM_OSX        0
+#define BX_PLATFORM_PS4        0
 #define BX_PLATFORM_QNX        0
 #define BX_PLATFORM_QNX        0
 #define BX_PLATFORM_RPI        0
 #define BX_PLATFORM_RPI        0
 #define BX_PLATFORM_WINDOWS    0
 #define BX_PLATFORM_WINDOWS    0
 #define BX_PLATFORM_WINRT      0
 #define BX_PLATFORM_WINRT      0
 #define BX_PLATFORM_XBOX360    0
 #define BX_PLATFORM_XBOX360    0
+#define BX_PLATFORM_XBOXONE    0
 
 
 #define BX_CPU_ARM  0
 #define BX_CPU_ARM  0
 #define BX_CPU_JIT  0
 #define BX_CPU_JIT  0
@@ -120,6 +122,9 @@
 #if defined(_XBOX_VER)
 #if defined(_XBOX_VER)
 #	undef  BX_PLATFORM_XBOX360
 #	undef  BX_PLATFORM_XBOX360
 #	define BX_PLATFORM_XBOX360 1
 #	define BX_PLATFORM_XBOX360 1
+#elif defined (_DURANGO)
+#	undef  BX_PLATFORM_XBOXONE
+#	define BX_PLATFORM_XBOXONE 1
 #elif defined(_WIN32) || defined(_WIN64)
 #elif defined(_WIN32) || defined(_WIN64)
 // http://msdn.microsoft.com/en-us/library/6sehtctf.aspx
 // http://msdn.microsoft.com/en-us/library/6sehtctf.aspx
 #	ifndef NOMINMAX
 #	ifndef NOMINMAX
@@ -173,6 +178,9 @@
 #elif defined(EMSCRIPTEN)
 #elif defined(EMSCRIPTEN)
 #	undef  BX_PLATFORM_EMSCRIPTEN
 #	undef  BX_PLATFORM_EMSCRIPTEN
 #	define BX_PLATFORM_EMSCRIPTEN 1
 #	define BX_PLATFORM_EMSCRIPTEN 1
+#elif defined(__ORBIS__)
+#	undef  BX_PLATFORM_PS4
+#	define BX_PLATFORM_PS4 1
 #elif defined(__QNX__)
 #elif defined(__QNX__)
 #	undef  BX_PLATFORM_QNX
 #	undef  BX_PLATFORM_QNX
 #	define BX_PLATFORM_QNX 1
 #	define BX_PLATFORM_QNX 1
@@ -242,6 +250,8 @@
 				BX_STRINGIZE(BX_PLATFORM_NACL)
 				BX_STRINGIZE(BX_PLATFORM_NACL)
 #elif BX_PLATFORM_OSX
 #elif BX_PLATFORM_OSX
 #	define BX_PLATFORM_NAME "OSX"
 #	define BX_PLATFORM_NAME "OSX"
+#elif BX_PLATFORM_PS4
+#	define BX_PLATFORM_NAME "PlayStation 4"
 #elif BX_PLATFORM_QNX
 #elif BX_PLATFORM_QNX
 #	define BX_PLATFORM_NAME "QNX"
 #	define BX_PLATFORM_NAME "QNX"
 #elif BX_PLATFORM_RPI
 #elif BX_PLATFORM_RPI
@@ -250,6 +260,10 @@
 #	define BX_PLATFORM_NAME "Windows"
 #	define BX_PLATFORM_NAME "Windows"
 #elif BX_PLATFORM_WINRT
 #elif BX_PLATFORM_WINRT
 #	define BX_PLATFORM_NAME "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_
 #endif // BX_PLATFORM_
 
 
 #if BX_CPU_ARM
 #if BX_CPU_ARM