mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
cmdutils: check for SetDllDirectory() availability
It's only available on Windows XP or newer. Should fix compilation with mingw32 using the default OS target. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
66bd740e0b
commit
61fcba7546
@ -109,7 +109,7 @@ static void log_callback_report(void *ptr, int level, const char *fmt, va_list v
|
|||||||
|
|
||||||
void init_dynload(void)
|
void init_dynload(void)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#if HAVE_SETDLLDIRECTORY
|
||||||
/* Calling SetDllDirectory with the empty string (but not NULL) removes the
|
/* Calling SetDllDirectory with the empty string (but not NULL) removes the
|
||||||
* current working directory from the DLL search path as a security pre-caution. */
|
* current working directory from the DLL search path as a security pre-caution. */
|
||||||
SetDllDirectory("");
|
SetDllDirectory("");
|
||||||
|
2
configure
vendored
2
configure
vendored
@ -1900,6 +1900,7 @@ SYSTEM_FUNCS="
|
|||||||
sched_getaffinity
|
sched_getaffinity
|
||||||
SetConsoleTextAttribute
|
SetConsoleTextAttribute
|
||||||
SetConsoleCtrlHandler
|
SetConsoleCtrlHandler
|
||||||
|
SetDllDirectory
|
||||||
setmode
|
setmode
|
||||||
setrlimit
|
setrlimit
|
||||||
Sleep
|
Sleep
|
||||||
@ -5317,6 +5318,7 @@ check_func_headers windows.h MapViewOfFile
|
|||||||
check_func_headers windows.h PeekNamedPipe
|
check_func_headers windows.h PeekNamedPipe
|
||||||
check_func_headers windows.h SetConsoleTextAttribute
|
check_func_headers windows.h SetConsoleTextAttribute
|
||||||
check_func_headers windows.h SetConsoleCtrlHandler
|
check_func_headers windows.h SetConsoleCtrlHandler
|
||||||
|
check_func_headers windows.h SetDllDirectory
|
||||||
check_func_headers windows.h Sleep
|
check_func_headers windows.h Sleep
|
||||||
check_func_headers windows.h VirtualAlloc
|
check_func_headers windows.h VirtualAlloc
|
||||||
check_struct windows.h "CONDITION_VARIABLE" Ptr
|
check_struct windows.h "CONDITION_VARIABLE" Ptr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user