[MPlayer-dev-eng] fix compilation errors with mingw64
Diego Biurrun
diego at biurrun.de
Thu Apr 28 15:40:33 CEST 2011
On Tue, Apr 26, 2011 at 09:49:49AM -0700, Stephen Sheldon wrote:
> I use mingw64 to compile mplayer in Windows 7 64-bits. I use the
> mingw64-x86_64 packages on cygwin. After the recent change to configure
> to add the flag "-Werror-implicit-funtion-declaration" I got 3
> compilation errors. Attached is a patch to fix them.
Show us the errors please.
> --- configure (revision 33331)
> +++ configure (working copy)
> @@ -3885,6 +3885,9 @@
> echocheck "swab()"
> _swab=no
> define_statement_check "_XOPEN_SOURCE 600" "unistd.h" 'int a, b; swab(&a, &b, 0)' && _swab=yes
> +if test "$_swab" != yes ; then
> + define_statement_check "A A" "stdlib.h" 'int a, b; swab(&a, &b, 0)' && _swab=yes
Are you just trying to check for swab without _XOPEN_SOURCE defined?
Then you should use plain statement_check. And where is swab() in
MinGW64? unistd.h is the right place, if it is in stdlib.h, you
should be patching MinGW64, not MPlayer.
> --- command.c (revision 33331)
> +++ command.c (working copy)
> @@ -69,6 +69,7 @@
> #include "libavutil/avstring.h"
> #include "edl.h"
> +#include "osdep/strsep.h"
This one is correct, applied along with another missing instance.
Diego
More information about the MPlayer-dev-eng
mailing list