diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-10-07 21:46:56 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-10-09 08:33:45 +0200 |
commit | 940e1c1e743e376ddd47f2e2bd963c82d8dc5f59 (patch) | |
tree | 19cb42ba5a9fbb032255d171ad629f0987405531 /lib/curl_threads.h | |
parent | 6450a55721a9c0eda97e83cf014106392d15c1b6 (diff) | |
download | curl-940e1c1e743e376ddd47f2e2bd963c82d8dc5f59.tar.gz |
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
Diffstat (limited to 'lib/curl_threads.h')
-rw-r--r-- | lib/curl_threads.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/curl_threads.h b/lib/curl_threads.h index 9e0d14a30..2a93644c5 100644 --- a/lib/curl_threads.h +++ b/lib/curl_threads.h @@ -38,7 +38,8 @@ # define curl_thread_t HANDLE # define curl_thread_t_null (HANDLE)0 # if !defined(_WIN32_WINNT) || !defined(_WIN32_WINNT_VISTA) || \ - (_WIN32_WINNT < _WIN32_WINNT_VISTA) + (_WIN32_WINNT < _WIN32_WINNT_VISTA) || \ + (defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)) # define Curl_mutex_init(m) InitializeCriticalSection(m) # else # define Curl_mutex_init(m) InitializeCriticalSectionEx(m, 0, 1) |