16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 00:09:19 +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

@@ -23,7 +23,7 @@ void screenshot_manager::screenshot_save_thread( char *img )
uint64_t perf;
#ifdef _WIN32
QueryPerformanceCounter((LARGE_INTEGER*)&perf);
#elif __linux__
#elif __unix__
timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
perf = ts.tv_nsec;