From 940e1c1e743e376ddd47f2e2bd963c82d8dc5f59 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 7 Oct 2018 21:46:56 +0200 Subject: Windows: fixes for MinGW targeting Windows Vista Classic MinGW has neither InitializeCriticalSectionEx nor GetTickCount64, independent of the target Windows version. Closes https://github.com/curl/curl/pull/3113 --- tests/server/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/server/util.c b/tests/server/util.c index df681968d..07ef63ee1 100644 --- a/tests/server/util.c +++ b/tests/server/util.c @@ -414,7 +414,8 @@ static struct timeval tvnow(void) ** is typically in the range of 10 milliseconds to 16 milliseconds. */ struct timeval now; -#if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600) +#if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600) && \ + (!defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR)) ULONGLONG milliseconds = GetTickCount64(); #else DWORD milliseconds = GetTickCount(); -- cgit v1.2.3