dedupe curl_win_thread_handle_t typedef into curl_setup.h

This commit is contained in:
Viktor Szakats 2025-08-01 21:57:29 +02:00
parent 08eb26241a
commit 4d825c74d4
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
5 changed files with 2 additions and 12 deletions

View file

@ -642,8 +642,10 @@
#if defined(CURL_WINDOWS_UWP) || defined(UNDER_CE)
#define CURL_THREAD_RETURN_T DWORD
typedef HANDLE curl_win_thread_handle_t;
#else
#define CURL_THREAD_RETURN_T unsigned int
typedef uintptr_t curl_win_thread_handle_t;
#endif
/*

View file

@ -133,11 +133,6 @@ int Curl_thread_cancel(curl_thread_t *hnd)
curl_thread_t Curl_thread_create(CURL_THREAD_RETURN_T
(CURL_STDCALL *func) (void *), void *arg)
{
#if defined(CURL_WINDOWS_UWP) || defined(UNDER_CE)
typedef HANDLE curl_win_thread_handle_t;
#else
typedef uintptr_t curl_win_thread_handle_t;
#endif
curl_thread_t t;
curl_win_thread_handle_t thread_handle;
#if defined(CURL_WINDOWS_UWP) || defined(UNDER_CE)