On Wed, 7 Aug 2013, Diogo Franco (Kovensky) wrote:
Fixes commandline parsing on Cygwin, which does HAVE_COMMANDLINETOARGVW,
I guess this could be qualified to cygwin64, while cygwin32 seems to work
just fine. (No need to resend the patch just for that.)
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
This looks acceptable to me.
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel