From bf9b3a263a5954230be3ce0c35b9c46e43bfc1b6 Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Sat, 15 Jul 2017 18:37:32 -0700 Subject: [PATCH] remove code that creates directory. add file in out directory so that git creates the directory --- resources/out/readme.txt | 1 + xmltest.cpp | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) create mode 100644 resources/out/readme.txt diff --git a/resources/out/readme.txt b/resources/out/readme.txt new file mode 100644 index 0000000..5c8861a --- /dev/null +++ b/resources/out/readme.txt @@ -0,0 +1 @@ +This file is here to create this output directory when the source is pulled from git. \ No newline at end of file diff --git a/xmltest.cpp b/xmltest.cpp index b6ad3b3..57a8d17 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -338,16 +338,6 @@ int main( int argc, const char ** argv ) } fclose( fp ); -#if 0 -#if defined WIN32 - if ( !CreateDirectory( L"resources\\out", NULL ) && GetLastError() != ERROR_ALREADY_EXISTS ) { -#else - if ( mkdir( "resources/out", S_IRWXU | S_IRGRP | S_IXGRP ) == -1 && errno != EEXIST ) { -#endif - printf( "Unable to create directory 'resources/out': %s\n", strerror( errno ) ); - exit( 1 ); - } -#endif XMLTest( "Example-1", 0, example_1() ); XMLTest( "Example-2", 0, example_2() ); XMLTest( "Example-3", 0, example_3() );