mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:23:44 +03:00
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
This commit is contained in:
parent
6450a55721
commit
940e1c1e74
4 changed files with 8 additions and 4 deletions
|
|
@ -40,7 +40,8 @@ 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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue