From df45aba9231fdec2cf5ac118519ab41558b9fa03 Mon Sep 17 00:00:00 2001 From: Bob Burger Date: Thu, 22 Sep 2016 14:46:44 -0400 Subject: [PATCH] added needed #ifdef WIN32. Thanks, alflanagan! original commit: 7728f94291d10d8b86b1ac368c43a53ca3e7d5ae --- c/stats.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/c/stats.c b/c/stats.c index 27b06118b5..d31c251ebc 100644 --- a/c/stats.c +++ b/c/stats.c @@ -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); }