1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +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 all: Make header guard names consistent 2016-01-31 15:44:11 -08:00
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 Merge commit '6bb99757b780144d9fa27cdce09d3621e1a0ed43' 2016-05-08 23:02:33 +01:00
djgpp additional math.h functions for djgpp 2018-11-28 22:16:07 +11:00
float Merge remote-tracking branch 'qatar/master' 2014-03-10 12:05:02 +01:00
msvcrt fix broken links to msdn documentation 2021-05-13 09:13:03 +10:00
solaris compat/solaris/make_sunver.pl: Use /usr/bin/env perl instead of /usr/bin/perl 2015-10-20 02:21:34 +02:00
windows compat: Use '-' instead of '/' for rc.exe options 2023-02-13 13:49:40 +02:00
getopt.c Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39' 2014-08-15 21:00:50 +02:00
os2threads.h compat/os2threads: define INCL_DOSERRORS 2020-02-15 18:25:51 +01:00
strtod.c compat/strtod: Add missing const qualifiers. 2017-05-04 23:17:20 +02:00
va_copy.h all: Add missing header guards 2016-01-28 19:49:48 -08:00
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