[host] fix windows compilation with mingw clang

This commit is contained in:
Geoffrey McRae 2023-10-21 22:02:02 +11:00
parent 128a8938c6
commit 646f5b1be8

View File

@ -39,7 +39,7 @@ typedef struct LGTimer LGTimer;
static inline uint64_t microtime(void)
{
#if defined(_WIN32)
static LARGE_INTEGER freq = { 0 };
static LARGE_INTEGER freq = { .QuadPart = 0LL };
if (!freq.QuadPart)
QueryPerformanceFrequency(&freq);
@ -74,7 +74,7 @@ static inline uint64_t nanotime(void)
static double multiplier = 0.0;
if (!multiplier)
{
LARGE_INTEGER freq = { 0 };
LARGE_INTEGER freq = { .QuadPart = 0LL };
QueryPerformanceFrequency(&freq);
multiplier = 1e9 / freq.QuadPart;
}