add and use thread callconv macro

This commit is contained in:
Viktor Szakats 2025-08-01 22:38:21 +02:00
parent 821d6c0a29
commit 784fc23958
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
5 changed files with 8 additions and 4 deletions

View file

@ -413,7 +413,8 @@ struct select_ws_wait_data {
HANDLE abort; /* internal event to abort waiting threads */
};
#include <process.h>
static unsigned int WINAPI select_ws_wait_thread(void *lpParameter)
static
unsigned int CURL_WIN_THREADFUNC select_ws_wait_thread(void *lpParameter)
{
struct select_ws_wait_data *data;
HANDLE signal, handle, handles[2];

View file

@ -488,7 +488,8 @@ static LRESULT CALLBACK main_window_proc(HWND hwnd, UINT uMsg,
/* Window message queue loop for hidden main window, details see above.
*/
#include <process.h>
static CURL_THREAD_RETURN_T WINAPI main_window_loop(void *lpParameter)
static
CURL_THREAD_RETURN_T CURL_WIN_THREADFUNC main_window_loop(void *lpParameter)
{
WNDCLASS wc;
BOOL ret;