Permalink
Browse files

added needed #ifdef WIN32. Thanks, alflanagan!

  • Loading branch information...
1 parent 15982a2 commit 7728f94291d10d8b86b1ac368c43a53ca3e7d5ae @burgerrg burgerrg committed Sep 22, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 c/stats.c
View
@@ -463,6 +463,7 @@ ptr S_realtime(void) {
/******** initialization ********/
void S_stats_init() {
+#ifdef WIN32
/* Use GetSystemTimePreciseAsFileTime when available (Windows 8 and later). */
HMODULE h = LoadLibrary("kernel32.dll");
if (h != NULL) {
@@ -472,5 +473,6 @@ void S_stats_init() {
else
FreeLibrary(h);
}
+#endif
s_gettime(time_monotonic, &starting_mono_tp);
}

0 comments on commit 7728f94

Please sign in to comment.