]> git.sesse.net Git - ffmpeg/blobdiff - cmdutils.c
libavcodec/mpegvideo.h: Fix duplicate words
[ffmpeg] / cmdutils.c
index 6eb093df18b73850da74e9518543308265a569c3..b1d831d325c0b694c65c4c485569232c8f114602 100644 (file)
@@ -213,7 +213,10 @@ static const OptionDef *find_option(const OptionDef *po, const char *name)
     return po;
 }
 
-#if HAVE_COMMANDLINETOARGVW
+/* _WIN32 means using the windows libc - cygwin doesn't define that
+ * by default. HAVE_COMMANDLINETOARGVW is true on cygwin, while
+ * it doesn't provide the actual command line via GetCommandLineW(). */
+#if HAVE_COMMANDLINETOARGVW && defined(_WIN32)
 #include <windows.h>
 #include <shellapi.h>
 /* Will be leaked on exit */