change __linux__ to __unix__

This commit is contained in:
milek7
2019-03-25 20:54:17 +01:00
parent 65eec2ad84
commit 901175f54a
7 changed files with 13 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ http://mozilla.org/MPL/2.0/.
#pragma comment (lib, "dbghelp.lib")
#pragma comment (lib, "version.lib")
#ifdef __linux__
#ifdef __unix__
#include <unistd.h>
#include <sys/stat.h>
#endif
@@ -540,7 +540,7 @@ eu07_application::init_files() {
DeleteFile( "log.txt" );
DeleteFile( "errors.txt" );
CreateDirectory( "logs", NULL );
#elif __linux__
#elif __unix__
unlink("log.txt");
unlink("errors.txt");
mkdir("logs", 0755);