16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 00:59:18 +02:00

change __linux__ to __unix__

This commit is contained in:
milek7
2019-03-25 20:54:17 +01:00
committed by milek
parent c09160d8f5
commit 1fba251baf
7 changed files with 13 additions and 8 deletions

View File

@@ -30,7 +30,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
@@ -361,7 +361,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", 0664);