cURL-build-win32/patch/curl_threads.diff

19 lines
797 B
Diff
Raw Permalink Normal View History

2023-10-14 14:50:13 +02:00
diff --git "a/lib/curl_threads.h" "b/lib/curl_threads.h"
index 27a478d..a8fd9cb 100644
--- "a/lib/curl_threads.h"
+++ "b/lib/curl_threads.h"
@@ -39,12 +39,7 @@
# define curl_mutex_t CRITICAL_SECTION
# define curl_thread_t HANDLE
# define curl_thread_t_null (HANDLE)0
-# if !defined(_WIN32_WINNT) || !defined(_WIN32_WINNT_VISTA) || \
2023-10-14 14:50:13 +02:00
- (_WIN32_WINNT < _WIN32_WINNT_VISTA)
-# define Curl_mutex_init(m) InitializeCriticalSection(m)
-# else
-# define Curl_mutex_init(m) InitializeCriticalSectionEx(m, 0, 1)
-# endif
+# define Curl_mutex_init(m) InitializeCriticalSection(m)
# define Curl_mutex_acquire(m) EnterCriticalSection(m)
# define Curl_mutex_release(m) LeaveCriticalSection(m)
# define Curl_mutex_destroy(m) DeleteCriticalSection(m)