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

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