[MPlayer-cvslog] r35834 - trunk/configure

Alexander Strasser eclipse7 at gmx.net
Fri Jan 25 23:21:15 CET 2013


KO Myung-Hun wrote:
> Diego Biurrun wrote:
> > On Fri, Jan 25, 2013 at 03:34:30PM +0900, KO Myung-Hun wrote:
> >> Diego Biurrun wrote:
> >>> On Fri, Jan 25, 2013 at 12:46:45AM +0900, KO Myung-Hun wrote:
> >>>> diego wrote:
> >>>>>
> >>>>> Log:
> >>>>> configure: Unset HAVE_DIRECT_H if direct.h is not available.
> >>>>>
> >>>>> libdvdcss checks the value of that preprocessor symbol via #ifdef,
> >>>>> so it needs to be explicitly undefined, not set to zero.
> >>>>>
> >>>>> --- trunk/configure	Wed Jan 23 15:36:36 2013	(r35833)
> >>>>> +++ trunk/configure	Wed Jan 23 17:04:28 2013	(r35834)
> >>>>> @@ -3785,7 +3785,8 @@ header_check direct.h && _direct_h=yes
> >>>>>  if [ $_direct_h = yes ]; then
> >>>>>    def_direct_h='#define HAVE_DIRECT_H 1'
> >>>>>  else
> >>>>> -  def_direct_h='#define HAVE_DIRECT_H 0'
> >>>>> +  # libdvdcss checks this via #ifdef, so we need #undef here.
> >>>>> +  def_direct_h='#undef HAVE_DIRECT_H'
> >>>>>  fi
> >>>>>  echores "$_direct_h"
> >>>>
> >>>> libavformat/os_support.h uses #if although it is guarded by WIN32.
> >>>
> >>> That is not a problem an undefined preprocessor symbol evaluates as 0.
> >>
> >> But it generates a warning with -Wundef.
> > 
> > Having to choose between a warning and incorrect behavior, what do
> > you pick?
> > 
> 
> I would not do r35835.

  +1

> What a surprise you choose the way generating a warning.

  I agree it is just not worth it ATM. This is a all in all, including
the work to do it in the first place, a bad tradeoff for just 2 lines
of difference reduction to upstream.

  Alexander


More information about the MPlayer-cvslog mailing list