Message ID | 20230523112324.3084-1-robux4@ycbcr.xyz |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] w32pthread: fix signature of WinRT version of thread worker | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h index 6405e72b64..364eebfe4e 100644 --- a/compat/w32pthreads.h +++ b/compat/w32pthreads.h @@ -66,7 +66,11 @@ typedef CONDITION_VARIABLE pthread_cond_t; #define PTHREAD_CANCEL_ENABLE 1 #define PTHREAD_CANCEL_DISABLE 0 +#if HAVE_WINRT +static av_unused DWORD WINAPI attribute_align_arg win32thread_worker(void *arg) +#else static av_unused unsigned __stdcall attribute_align_arg win32thread_worker(void *arg) +#endif { pthread_t *h = (pthread_t*)arg; h->ret = h->func(h->arg);