mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:41:41 +03:00
lib: fix thread entry point to return DWORD on WinCE
We already do this in `tests/server/util.c`:
97e5e37cc8/tests/server/util.c (L604-L606)
and in `sockfilt.c`, `lib3026.c`.
Before this patch it returned `unsigned int`.
Closes #13877
This commit is contained in:
parent
3392f0f97e
commit
83384669ef
3 changed files with 28 additions and 6 deletions
|
|
@ -447,7 +447,13 @@ query_complete(DWORD err, DWORD bytes, LPWSAOVERLAPPED overlapped)
|
|||
* For builds without ARES, but with USE_IPV6, create a resolver thread
|
||||
* and wait on it.
|
||||
*/
|
||||
static unsigned int CURL_STDCALL getaddrinfo_thread(void *arg)
|
||||
static
|
||||
#if defined(_WIN32_WCE)
|
||||
DWORD
|
||||
#else
|
||||
unsigned int
|
||||
#endif
|
||||
CURL_STDCALL getaddrinfo_thread(void *arg)
|
||||
{
|
||||
struct thread_sync_data *tsd = (struct thread_sync_data *)arg;
|
||||
struct thread_data *td = tsd->td;
|
||||
|
|
@ -500,7 +506,13 @@ static unsigned int CURL_STDCALL getaddrinfo_thread(void *arg)
|
|||
/*
|
||||
* gethostbyname_thread() resolves a name and then exits.
|
||||
*/
|
||||
static unsigned int CURL_STDCALL gethostbyname_thread(void *arg)
|
||||
static
|
||||
#if defined(_WIN32_WCE)
|
||||
DWORD
|
||||
#else
|
||||
unsigned int
|
||||
#endif
|
||||
CURL_STDCALL gethostbyname_thread(void *arg)
|
||||
{
|
||||
struct thread_sync_data *tsd = (struct thread_sync_data *)arg;
|
||||
struct thread_data *td = tsd->td;
|
||||
|
|
|
|||
|
|
@ -100,8 +100,13 @@ int Curl_thread_join(curl_thread_t *hnd)
|
|||
|
||||
#elif defined(USE_THREADS_WIN32)
|
||||
|
||||
/* !checksrc! disable SPACEBEFOREPAREN 1 */
|
||||
curl_thread_t Curl_thread_create(unsigned int (CURL_STDCALL *func) (void *),
|
||||
curl_thread_t Curl_thread_create(
|
||||
#if defined(_WIN32_WCE)
|
||||
DWORD
|
||||
#else
|
||||
unsigned int
|
||||
#endif
|
||||
(CURL_STDCALL *func) (void *),
|
||||
void *arg)
|
||||
{
|
||||
#ifdef _WIN32_WCE
|
||||
|
|
|
|||
|
|
@ -52,8 +52,13 @@
|
|||
|
||||
#if defined(USE_THREADS_POSIX) || defined(USE_THREADS_WIN32)
|
||||
|
||||
/* !checksrc! disable SPACEBEFOREPAREN 1 */
|
||||
curl_thread_t Curl_thread_create(unsigned int (CURL_STDCALL *func) (void *),
|
||||
curl_thread_t Curl_thread_create(
|
||||
#if defined(_WIN32_WCE)
|
||||
DWORD
|
||||
#else
|
||||
unsigned int
|
||||
#endif
|
||||
(CURL_STDCALL *func) (void *),
|
||||
void *arg);
|
||||
|
||||
void Curl_thread_destroy(curl_thread_t hnd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue