From a8ae1f6a4df08fb9dc27160ea1b9af67b3261e90 Mon Sep 17 00:00:00 2001 From: ddiproietto Date: Sun, 5 May 2013 18:42:52 +0300 Subject: [PATCH] Fixed compilation under MINGW64 Necessary on mingw64 2.22 --- xmltest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xmltest.cpp b/xmltest.cpp index c8e1b0b..7a3c508 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -280,7 +280,12 @@ int main( int argc, const char ** argv ) #endif #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 mkdir( "resources/out/", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); #endif