1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +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 atomics: Fix the win32 atomic_exchange function 2021-04-04 11:06:08 +03:00
cuda compat/cuda: switch from powf to __powf intrinsic 2022-09-03 20:27:34 +02:00
dispatch_semaphore
djgpp
float
msvcrt fix broken links to msdn documentation 2021-05-13 09:13:03 +10:00
solaris
windows compat: Use '-' instead of '/' for rc.exe options 2023-02-13 13:49:40 +02:00
getopt.c
os2threads.h compat/os2threads: define INCL_DOSERRORS 2020-02-15 18:25:51 +01:00
strtod.c
va_copy.h
w32dlfcn.h compat/w32dlfcn.h: Remove MAX_PATH limit and replace LoadLibraryExA with LoadLibraryExW 2022-06-21 13:27:46 +03:00
w32pthreads.h w32pthreads: Fix function signature mismatches for CreateThread 2023-08-04 21:51:20 +03:00