mirror of https://github.com/AxioDL/tinyxml2.git
xmltest.cpp: path separator is '\\' under WIN32
This commit is contained in:
parent
bf29a15242
commit
9720fbaf47
|
@ -339,9 +339,9 @@ int main( int argc, const char ** argv )
|
||||||
fclose( fp );
|
fclose( fp );
|
||||||
|
|
||||||
#if defined WIN32
|
#if defined WIN32
|
||||||
if ( !CreateDirectory( "resources/out", NULL ) && GetLastError() != ERROR_ALREADY_EXISTS ) {
|
if ( !CreateDirectory( "resources\\out", NULL ) && GetLastError() != ERROR_ALREADY_EXISTS ) {
|
||||||
#else
|
#else
|
||||||
if ( mkdir( "resources/out", 0750 ) == -1 && errno != EEXIST ) {
|
if ( mkdir( "resources/out", S_IRWXU | S_IRGRP | S_IXGRP ) == -1 && errno != EEXIST ) {
|
||||||
#endif
|
#endif
|
||||||
printf( "Unable to create directory 'resources/out': %s\n", strerror( errno ) );
|
printf( "Unable to create directory 'resources/out': %s\n", strerror( errno ) );
|
||||||
exit( 1 );
|
exit( 1 );
|
||||||
|
|
Loading…
Reference in New Issue