diff --git a/cmdutils.h b/cmdutils.h index eea44018b6..eca98a3cf4 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -29,6 +29,10 @@ #include "libavformat/avformat.h" #include "libswscale/swscale.h" +#ifdef __MINGW32__ +#undef main /* We don't want SDL to override our main() */ +#endif + /** * program name, defined by the program for show_version(). */ diff --git a/ffplay.c b/ffplay.c index 74d1f10945..5997f651e1 100644 --- a/ffplay.c +++ b/ffplay.c @@ -43,14 +43,10 @@ # include "libavfilter/avfiltergraph.h" #endif -#include "cmdutils.h" - #include #include -#ifdef __MINGW32__ -#undef main /* We don't want SDL to override our main() */ -#endif +#include "cmdutils.h" #include #include