Fixes commandline parsing on Cygwin, which does HAVE_COMMANDLINETOARGVW,
but whose GetCommandLineW() only returns the application's path.
Arguments are only given through main's argc/argv, and they're already
UTF-8.
---
cmdutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmdutils.c b/cmdutils.c
index 8e43795..8f01e08 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -182,7 +182,7 @@ static const OptionDef *find_option(const OptionDef *po,
const char *name)
return po;
}
-#if HAVE_COMMANDLINETOARGVW
+#if HAVE_COMMANDLINETOARGVW && defined(_WIN32)
#include <windows.h>
#include <shellapi.h>
/* Will be leaked on exit */
--
1.8.3.3.755.g001b097
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel