mirror of https://github.com/AxioDL/tinyxml2.git
Adds conditional include of io.h when compiling with MinGW
This commit is contained in:
parent
9352408301
commit
39ddc268cb
|
@ -14,6 +14,8 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
_CrtMemState startMemState;
|
_CrtMemState startMemState;
|
||||||
_CrtMemState endMemState;
|
_CrtMemState endMemState;
|
||||||
|
#elif defined(MINGW32) || defined(__MINGW32__)
|
||||||
|
#include <io.h> // mkdir
|
||||||
#else
|
#else
|
||||||
#include <sys/stat.h> // mkdir
|
#include <sys/stat.h> // mkdir
|
||||||
#endif
|
#endif
|
||||||
|
@ -156,7 +158,7 @@ int main( int /*argc*/, const char ** /*argv*/ )
|
||||||
_CrtMemCheckpoint( &startMemState );
|
_CrtMemCheckpoint( &startMemState );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER) || defined(MINGW32) || defined(__MINGW32__)
|
||||||
_mkdir( "resources/out/" );
|
_mkdir( "resources/out/" );
|
||||||
#else
|
#else
|
||||||
mkdir( "resources/out/", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
mkdir( "resources/out/", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
||||||
|
|
Loading…
Reference in New Issue