Бранимир Караџић 1 year ago
parent
commit
09e410ce5e
2 changed files with 4 additions and 4 deletions
  1. 3 3
      include/bx/platform.h
  2. 1 1
      src/file.cpp

+ 3 - 3
include/bx/platform.h

@@ -238,12 +238,12 @@
 #	elif defined(__GLIBC__)
 #		undef  BX_CRT_GLIBC
 #		define BX_CRT_GLIBC (__GLIBC__ * 10000 + __GLIBC_MINOR__ * 100)
-#	elif defined(__apple_build_version__) || defined(__ORBIS__) || defined(__EMSCRIPTEN__) || defined(__llvm__) || defined(__HAIKU__)
-#		undef  BX_CRT_LIBCXX
-#		define BX_CRT_LIBCXX 1
 #	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

+ 1 - 1
src/file.cpp

@@ -800,7 +800,7 @@ namespace bx
 #if BX_CRT_MSVC
 		int32_t result = ::_mkdir(_filePath.getCPtr() );
 #elif BX_CRT_MINGW
-		int32_t result = ::mkdir(_filePath.getCPtr());
+		int32_t result = ::mkdir(_filePath.getCPtr() );
 #elif BX_CRT_NONE
 		BX_UNUSED(_filePath);
 		int32_t result = -1;