From 39ddc268cbf2833a65be48565198aea4e62a9cb9 Mon Sep 17 00:00:00 2001 From: Martinsh Shaiters Date: Tue, 15 Jan 2013 21:53:08 +0200 Subject: [PATCH] Adds conditional include of io.h when compiling with MinGW --- xmltest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmltest.cpp b/xmltest.cpp index 42ecd80..6944ca2 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -14,6 +14,8 @@ #include _CrtMemState startMemState; _CrtMemState endMemState; +#elif defined(MINGW32) || defined(__MINGW32__) + #include // mkdir #else #include // mkdir #endif @@ -156,7 +158,7 @@ int main( int /*argc*/, const char ** /*argv*/ ) _CrtMemCheckpoint( &startMemState ); #endif - #if defined(_MSC_VER) + #if defined(_MSC_VER) || defined(MINGW32) || defined(__MINGW32__) _mkdir( "resources/out/" ); #else mkdir( "resources/out/", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);