]> git.sesse.net Git - ffmpeg/blobdiff - cmdutils.c
4xm: check that bits per sample is strictly positive
[ffmpeg] / cmdutils.c
index 8e437951915c2fb7f997aedbec3565212101f194..062d7ec2f850790da095a6449ecdf6e0552ff518 100644 (file)
@@ -182,7 +182,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 */