1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00
FFmpeg/compat
Martin Storsjö 7aa9684db3 w32pthreads: Fix function signature mismatches for CreateThread
In WinRT mode, we use CreateThread instead of _beginthreadex.

CreateThread takes a LPTHREAD_START_ROUTINE function pointer,
which has got the signature DWORD WINAPI ThreadProc(LPVOID).
_beginthreadex takes a function with the signature
unsigned __stdcall func(void *).

DWORD is defined as an unsigned long, which is different type
from unsigned int, even if they have the same size on Windows.

This fixes build failures with Clang 16 and newer, where function
pointer type mismatches are a fatal error by default.

Signed-off-by: Martin Storsjö <martin@martin.st>
2023-08-04 21:51:20 +03:00
..
aix
atomics
cuda compat/cuda: switch from powf to __powf intrinsic 2022-09-03 20:27:34 +02:00
dispatch_semaphore
djgpp
float
msvcrt
solaris
windows compat: Use '-' instead of '/' for rc.exe options 2023-02-13 13:49:40 +02:00
getopt.c
os2threads.h
strtod.c
va_copy.h
w32dlfcn.h
w32pthreads.h w32pthreads: Fix function signature mismatches for CreateThread 2023-08-04 21:51:20 +03:00