[MPlayer-cvslog] r26219 - trunk/mpbswap.h

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Mar 12 09:20:58 CET 2008


On Wed, Mar 12, 2008 at 12:40:08AM +0100, Diego Biurrun wrote:
> On Tue, Mar 11, 2008 at 11:42:48AM +0100, Reimar Döffinger wrote:
> > On Mon, Mar 10, 2008 at 09:20:08PM +0100, diego wrote:
> > > 
> > > Log:
> > > Add missing header #include.
> > > 
> > > --- trunk/mpbswap.h	(original)
> > > +++ trunk/mpbswap.h	Mon Mar 10 21:20:08 2008
> > > @@ -3,6 +3,8 @@
> > >  
> > >  #include <sys/types.h>
> > >  #include "libavutil/bswap.h"
> > > +#include "config.h"
> > 
> > Uh, libavutil/bswap.h almost certainly requires config.h, this seems
> > like a stupid place to put it?
> 
> The whole point is to get rid of magic header order requirements...

That is no reason to just put them in some random place instead of
having some kind of system to give it a consistent look.
Not to mention that others have given reasons why it is a good idea to
place config.h at least before all non-system headers (makes it easy to
put system specific hacks in config.h - sure we may never accept such
hacks in SVN, but is there a single advantage to _not_ preferring a
specific placement of config.h include?)



More information about the MPlayer-cvslog mailing list