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
Win32/
x64/
ipch/
resources/out/
*.sdf
*.suo

View File

@ -1,5 +1,6 @@
#include "tinyxml2.h"
#include <direct.h>
#include <cstdlib>
#include <cstring>
#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.
#endif
CreateDirectory( L"resources/out/", NULL );
mkdir( "resources/out/" );
FILE* fp = fopen( "resources/dream.xml", "r" );
if ( !fp ) {