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
562f2ba4ed
commit
2f9bc30956
2 changed files with 3 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ static void log_callback_report(void *ptr, int level, const char *fmt, va_list v
|
|||
|
||||
void init_dynload(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#if HAVE_SETDLLDIRECTORY
|
||||
/* Calling SetDllDirectory with the empty string (but not NULL) removes the
|
||||
* current working directory from the DLL search path as a security pre-caution. */
|
||||
SetDllDirectory("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue