aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-08-22 19:24:31 -0300
committerJames Almer <jamrial@gmail.com>2016-08-22 19:24:31 -0300
commit61fcba75464a6f4766bcf49e12cad8bc1d03379b (patch)
tree06c73546da0eae034fff313b708913246dfc7f74 /cmdutils.c
parent66bd740e0ba5d43d58d12f79addaf9acf8e3c0ae (diff)
downloadffmpeg-61fcba75464a6f4766bcf49e12cad8bc1d03379b.tar.gz
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>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 6960f8c99c..a725e77531 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -109,7 +109,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("");