Branimir Karadžić 9 years ago
parent
commit
a27af76cb4
1 changed files with 3 additions and 4 deletions
  1. 3 4
      include/bx/platform.h

+ 3 - 4
include/bx/platform.h

@@ -201,8 +201,7 @@
 // RaspberryPi compiler defines __linux__
 // RaspberryPi compiler defines __linux__
 #	undef  BX_PLATFORM_RPI
 #	undef  BX_PLATFORM_RPI
 #	define BX_PLATFORM_RPI 1
 #	define BX_PLATFORM_RPI 1
-#elif  defined(__linux__) \
-	|| BX_CPU_RISCV
+#elif  defined(__linux__)
 #	undef  BX_PLATFORM_LINUX
 #	undef  BX_PLATFORM_LINUX
 #	define BX_PLATFORM_LINUX 1
 #	define BX_PLATFORM_LINUX 1
 #elif  defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \
 #elif  defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \
@@ -231,8 +230,6 @@
 #elif defined(__GNU__)
 #elif defined(__GNU__)
 #	undef  BX_PLATFORM_HURD
 #	undef  BX_PLATFORM_HURD
 #	define BX_PLATFORM_HURD 1
 #	define BX_PLATFORM_HURD 1
-#else
-#	error "BX_PLATFORM_* is not defined!"
 #endif //
 #endif //
 
 
 #define BX_PLATFORM_POSIX (0 \
 #define BX_PLATFORM_POSIX (0 \
@@ -319,6 +316,8 @@
 #	define BX_PLATFORM_NAME "Xbox 360"
 #	define BX_PLATFORM_NAME "Xbox 360"
 #elif BX_PLATFORM_XBOXONE
 #elif BX_PLATFORM_XBOXONE
 #	define BX_PLATFORM_NAME "Xbox One"
 #	define BX_PLATFORM_NAME "Xbox One"
+#else
+#	define BX_PLATFORM_NAME "None"
 #endif // BX_PLATFORM_
 #endif // BX_PLATFORM_
 
 
 #if BX_CPU_ARM
 #if BX_CPU_ARM