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

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

@@ -27,7 +27,7 @@ std::deque<std::string> log_scrollback;
std::string filename_date() {
::SYSTEMTIME st;
#ifdef __linux__
#ifdef __unix__
timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
tm *tms = localtime(&ts.tv_sec);