CreateDirectory replaced by cross-platform mkdir function

This commit is contained in:
Arkadiy Shapkin 2012-07-25 22:10:39 +04:00
parent ff72d1fb82
commit ef1c69cf15
2 changed files with 27 additions and 25 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# intermediate files # intermediate files
Win32/ Win32/
x64/ x64/
ipch/
resources/out/ resources/out/
*.sdf *.sdf
*.suo *.suo

View File

@ -1,5 +1,6 @@
#include "tinyxml2.h" #include "tinyxml2.h"
#include <direct.h>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <ctime> #include <ctime>
@ -155,7 +156,7 @@ int main( int /*argc*/, const char ** /*argv*/ )
#pragma warning ( disable : 4996 ) // Fail to see a compelling reason why this should be deprecated. #pragma warning ( disable : 4996 ) // Fail to see a compelling reason why this should be deprecated.
#endif #endif
CreateDirectory( L"resources/out/", NULL ); mkdir( "resources/out/" );
FILE* fp = fopen( "resources/dream.xml", "r" ); FILE* fp = fopen( "resources/dream.xml", "r" );
if ( !fp ) { if ( !fp ) {