libxfcegui4 includes config.h

Danny Milosavljevic danny.milo at gmx.net
Thu Jan 8 21:32:58 CET 2004


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'






More information about the Xfce4-dev mailing list