mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
w32pthreads: Fix function pointer casts
This eliminates a handful of warnings at every inclusion of the header.
This commit is contained in:
parent
233d50b275
commit
bd9cd04626
@ -382,18 +382,18 @@ static av_unused void w32thread_init(void)
|
|||||||
#if _WIN32_WINNT < 0x0600
|
#if _WIN32_WINNT < 0x0600
|
||||||
HANDLE kernel_dll = GetModuleHandle(TEXT("kernel32.dll"));
|
HANDLE kernel_dll = GetModuleHandle(TEXT("kernel32.dll"));
|
||||||
/* if one is available, then they should all be available */
|
/* if one is available, then they should all be available */
|
||||||
cond_init =
|
cond_init = (void (WINAPI*)(pthread_cond_t *))
|
||||||
(void*)GetProcAddress(kernel_dll, "InitializeConditionVariable");
|
GetProcAddress(kernel_dll, "InitializeConditionVariable");
|
||||||
cond_broadcast =
|
cond_broadcast = (void (WINAPI*)(pthread_cond_t *))
|
||||||
(void*)GetProcAddress(kernel_dll, "WakeAllConditionVariable");
|
GetProcAddress(kernel_dll, "WakeAllConditionVariable");
|
||||||
cond_signal =
|
cond_signal = (void (WINAPI*)(pthread_cond_t *))
|
||||||
(void*)GetProcAddress(kernel_dll, "WakeConditionVariable");
|
GetProcAddress(kernel_dll, "WakeConditionVariable");
|
||||||
cond_wait =
|
cond_wait = (BOOL (WINAPI*)(pthread_cond_t *, pthread_mutex_t *, DWORD))
|
||||||
(void*)GetProcAddress(kernel_dll, "SleepConditionVariableCS");
|
GetProcAddress(kernel_dll, "SleepConditionVariableCS");
|
||||||
initonce_begin =
|
initonce_begin = (BOOL (WINAPI*)(pthread_once_t *, DWORD, BOOL *, void **))
|
||||||
(void*)GetProcAddress(kernel_dll, "InitOnceBeginInitialize");
|
GetProcAddress(kernel_dll, "InitOnceBeginInitialize");
|
||||||
initonce_complete =
|
initonce_complete = (BOOL (WINAPI*)(pthread_once_t *, DWORD, void *))
|
||||||
(void*)GetProcAddress(kernel_dll, "InitOnceComplete");
|
GetProcAddress(kernel_dll, "InitOnceComplete");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user