diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/w32pthreads.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h index 2aff72ae99..c25a191f21 100644 --- a/compat/w32pthreads.h +++ b/compat/w32pthreads.h @@ -82,8 +82,13 @@ static av_unused int pthread_create(pthread_t *thread, const void *unused_attr, { thread->func = start_routine; thread->arg = arg; +#if HAVE_WINRT + thread->handle = (void*)CreateThread(NULL, 0, win32thread_worker, thread, + 0, NULL); +#else thread->handle = (void*)_beginthreadex(NULL, 0, win32thread_worker, thread, 0, NULL); +#endif return !thread->handle; } |