mirror of https://github.com/AxioDL/tinyxml2.git
CreateDirectory replaced by cross-platform mkdir function
This commit is contained in:
parent
ff72d1fb82
commit
ef1c69cf15
|
@ -1,6 +1,7 @@
|
||||||
# intermediate files
|
# intermediate files
|
||||||
Win32/
|
Win32/
|
||||||
x64/
|
x64/
|
||||||
|
ipch/
|
||||||
resources/out/
|
resources/out/
|
||||||
*.sdf
|
*.sdf
|
||||||
*.suo
|
*.suo
|
||||||
|
|
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in New Issue