mirror of
https://github.com/curl/curl.git
synced 2026-06-15 01:25:38 +03:00
dedupe curl_win_thread_handle_t typedef into curl_setup.h
This commit is contained in:
parent
08eb26241a
commit
4d825c74d4
5 changed files with 2 additions and 12 deletions
|
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -40,11 +40,6 @@ static CURL_THREAD_RETURN_T __stdcall t3026_run_thread(void *ptr)
|
|||
|
||||
static CURLcode test_lib3026(const char *URL)
|
||||
{
|
||||
#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
|
||||
CURLcode results[NUM_THREADS];
|
||||
curl_win_thread_handle_t thread_handles[NUM_THREADS];
|
||||
unsigned tid_count = NUM_THREADS, i;
|
||||
|
|
|
|||
|
|
@ -557,7 +557,6 @@ static unsigned int WINAPI select_ws_wait_thread(void *lpParameter)
|
|||
|
||||
static HANDLE select_ws_wait(HANDLE handle, HANDLE signal, HANDLE abort)
|
||||
{
|
||||
typedef uintptr_t curl_win_thread_handle_t;
|
||||
struct select_ws_wait_data *data;
|
||||
curl_win_thread_handle_t thread;
|
||||
|
||||
|
|
|
|||
|
|
@ -624,7 +624,6 @@ void install_signal_handlers(bool keep_sigalrm)
|
|||
|
||||
#if !defined(CURL_WINDOWS_UWP) && !defined(UNDER_CE)
|
||||
{
|
||||
typedef uintptr_t curl_win_thread_handle_t;
|
||||
curl_win_thread_handle_t thread;
|
||||
thread = _beginthreadex(NULL, 0, &main_window_loop,
|
||||
(void *)GetModuleHandle(NULL), 0, &thread_main_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue