Бранимир Караџић 1 year ago
parent
commit
e64b7c097f
1 changed files with 8 additions and 4 deletions
  1. 8 4
      include/bx/platform.h

+ 8 - 4
include/bx/platform.h

@@ -238,15 +238,19 @@
 #	elif defined(__GLIBC__)
 #		undef  BX_CRT_GLIBC
 #		define BX_CRT_GLIBC (__GLIBC__ * 10000 + __GLIBC_MINOR__ * 100)
-#	elif defined(__MINGW32__) || defined(__MINGW64__)
+#	elif defined(__MINGW32__) \
+	||   defined(__MINGW64__)
 #		undef  BX_CRT_MINGW
 #		define BX_CRT_MINGW 1
-#	elif defined(__apple_build_version__) || defined(__ORBIS__) || defined(__EMSCRIPTEN__) || defined(__llvm__) || defined(__HAIKU__)
-#		undef  BX_CRT_LIBCXX
-#		define BX_CRT_LIBCXX 1
 #	elif defined(_MSC_VER)
 #		undef  BX_CRT_MSVC
 #		define BX_CRT_MSVC 1
+#	elif defined(__apple_build_version__) \
+	||   BX_PLATFORM_PS4                  \
+	||   BX_PLATFORM_EMSCRIPTEN           \
+	||   defined(__llvm__)
+#		undef  BX_CRT_LIBCXX
+#		define BX_CRT_LIBCXX 1
 #	endif //
 #endif // !BX_CRT_NONE