Re: [MPlayer-dev-eng] [PATCH] fix Cygwin build
- Date: Sat, 17 Jun 2017 01:09:44 +0200
- From: Alexander Strasser <eclipse7@xxxxxxx>
- Subject: Re: [MPlayer-dev-eng] [PATCH] fix Cygwin build
is this still needed? Seems it has been overlooked.
On 2016-09-09 16:53 -0700, Stephen Sheldon wrote:
> The Cygwin developers have been enhancing their feature test macros and
> mplayer stopped compiling. The M_PI macro was undefined. The attached
> patch fixes it again.
I intent to apply this patch if it is still needed.
> Index: configure
> --- configure (revision 37899)
> +++ configure (working copy)
> @@ -2859,6 +2859,10 @@
> CFLAGS="-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $CFLAGS" &&
> HOSTCFLAGS="-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $HOSTCFLAGS"
> +if cygwin; then
> + CFLAGS="-D_XOPEN_SOURCE=600 $CFLAGS"
> if test "$cc_vendor" = "gnu" ; then
> cflag_check -fno-tree-vectorize && CFLAGS="$CFLAGS -fno-tree-vectorize"
> cflag_check -Wundef && WARNFLAGS="-Wundef $WARNFLAGS"
MPlayer-dev-eng mailing list