Move static variable definition before other statement, to prevent
compile error in VS2012.
Fixes: #1135
int
evutil_gettimeofday(struct timeval *tv, struct timezone *tz)
{
+ static GetSystemTimePreciseAsFileTime_fn_t GetSystemTimePreciseAsFileTime_fn = NULL;
+ static int check_precise = 1;
+
#ifdef _MSC_VER
#define U64_LITERAL(n) n##ui64
#else
if (tv == NULL)
return -1;
- static GetSystemTimePreciseAsFileTime_fn_t GetSystemTimePreciseAsFileTime_fn = NULL;
- static int check_precise = 1;
-
if (EVUTIL_UNLIKELY(check_precise)) {
HMODULE h = evutil_load_windows_system_library_(TEXT("kernel32.dll"));
if (h != NULL)