libxfcegui4 includes config.h

Olivier Fourdan fourdan at xfce.org
Thu Jan 8 22:26:44 CET 2004


Hi Danny,

Indeed, the headers should definitely not include it.

Cheers,
Olivier.

On Thu, 2004-01-08 at 21:32, Danny Milosavljevic wrote:
> Hi!
> 
> Just noticed something.
> 
> Why do some headers in /usr/include/xfce4/libxfcegui4 include config.h ?
> 
> gtk_style.h:#ifdef HAVE_CONFIG_H
> gtktoxevent.h:#ifdef HAVE_CONFIG_H
> session-client.h:#ifdef HAVE_CONFIG_H
> xinerama.h:#ifdef HAVE_CONFIG_H
> 
> My config.h contained
> #define const 
> for some reason, which of course broke eeeverything (in gcc -Wall
> mode)... but that is another issue...
> 
> Point being, if one includes for example panel/global.h, but forgot to
> include config.h at the top of ones source file, things can go horribly
> wrong...
> 
> sigh... now off finding the cause of the '#define const'
> 
> 
> 
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
-- 
Olivier Fourdan - fourdan at xfce.org
   
   Interoperability is the keyword, uniformity is a dead end. 
   http://www.xfce.org






More information about the Xfce4-dev mailing list