Ver Fonte

Fixed compilation under MINGW64

Necessary on mingw64 2.22
ddiproietto há 13 anos atrás
pai
commit
a8ae1f6a4d
1 ficheiros alterados com 6 adições e 1 exclusões
  1. 6 1
      xmltest.cpp

+ 6 - 1
xmltest.cpp

@@ -280,7 +280,12 @@ int main( int argc, const char ** argv )
 	#endif
 	#endif
 
 
 	#if defined(_MSC_VER) || defined(MINGW32) || defined(__MINGW32__)
 	#if defined(_MSC_VER) || defined(MINGW32) || defined(__MINGW32__)
-		_mkdir( "resources/out/" );
+		#if defined __MINGW64_VERSION_MAJOR && defined __MINGW64_VERSION_MINOR
+			//MINGW64: both 32 and 64-bit
+			mkdir( "resources/out/" );
+                #else
+                	_mkdir( "resources/out/" );
+                #endif
 	#else
 	#else
 		mkdir( "resources/out/", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
 		mkdir( "resources/out/", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
 	#endif
 	#endif