added needed #ifdef WIN32. Thanks, alflanagan!

original commit: 7728f94291d10d8b86b1ac368c43a53ca3e7d5ae
This commit is contained in:
Bob Burger 2016-09-22 14:46:44 -04:00
parent 30c6552ec2
commit df45aba923

View File

@ -463,6 +463,7 @@ ptr S_realtime(void) {
/******** initialization ********/ /******** initialization ********/
void S_stats_init() { void S_stats_init() {
#ifdef WIN32
/* Use GetSystemTimePreciseAsFileTime when available (Windows 8 and later). */ /* Use GetSystemTimePreciseAsFileTime when available (Windows 8 and later). */
HMODULE h = LoadLibrary("kernel32.dll"); HMODULE h = LoadLibrary("kernel32.dll");
if (h != NULL) { if (h != NULL) {
@ -472,5 +473,6 @@ void S_stats_init() {
else else
FreeLibrary(h); FreeLibrary(h);
} }
#endif
s_gettime(time_monotonic, &starting_mono_tp); s_gettime(time_monotonic, &starting_mono_tp);
} }