[MPlayer-dev-eng] [PATCH 8/9] Use proper ifdef/ifndef when checking defines

Hans-Christian Egtvedt hans-christian.egtvedt at atmel.com
Wed Feb 18 13:11:19 CET 2009


On Tue, 17 Feb 2009 23:05:47 +0100
Diego Biurrun <diego at biurrun.de> wrote:

> On Tue, Feb 17, 2009 at 08:34:53AM +0100, Hans-Christian Egtvedt
> wrote:
> > On Mon, 16 Feb 2009 18:31:12 +0100
> > Diego Biurrun <diego at biurrun.de> wrote:
> > 
> > > On Mon, Feb 16, 2009 at 05:16:57PM +0100, Hans-Christian Egtvedt
> > > wrote:
> > > > 
> > > > --- a/libavcodec/bitstream.h
> > > > +++ b/libavcodec/bitstream.h
> > > > @@ -199,7 +199,7 @@ static inline void put_bits(PutBitContext
> > > > *s, int n, unsigned int value) if (n >= bit_left) {
> > > > -#if !HAVE_FAST_UNALIGNED
> > > > +#ifndef HAVE_FAST_UNALIGNED
> > > 
> > > All of these are wrong, rejected.
> > 
> > The reason for my patch was that HAVE_FAST_UNALIGNED is not defined
> > when I configure for AVR32, and I got warnings from GCC.
> > 
> > Should this define be present somewhere after a ./configure?
> 
> I just added it for avr32.
> 

Thanks, gave it a spin and behaves nice and cleans the compile warnings.

-- 
Best regards,
Hans-Christian Egtvedt



More information about the MPlayer-dev-eng mailing list