build-system: get rid of config.h inclusion checks
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2009 00:46:35 +0000 (02:46 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 May 2009 18:30:15 +0000 (20:30 +0200)
These header files include config.h explicitly anyway. These checks are
hence pointless.

Of course one could argue that including config.h from header files
sucks, but D-Bus generally seems not to have a problem with that, so
let's unify this.

dbus/dbus-marshal-basic.h
dbus/dbus-marshal-byteswap.h
dbus/dbus-marshal-header.h
dbus/dbus-marshal-recursive.h
dbus/dbus-marshal-validate.h

index 28c751f..bcc15ee 100644 (file)
 #include <dbus/dbus-arch-deps.h>
 #include <dbus/dbus-string.h>
 
-#ifndef PACKAGE
-#error "config.h not included here"
-#endif
-
 #ifdef WORDS_BIGENDIAN
 #define DBUS_COMPILER_BYTE_ORDER DBUS_BIG_ENDIAN
 #else
index 880c837..e0f90e3 100644 (file)
 #include <dbus/dbus-protocol.h>
 #include <dbus/dbus-marshal-recursive.h>
 
-#ifndef PACKAGE
-#error "config.h not included here"
-#endif
-
 void _dbus_marshal_byteswap (const DBusString *signature,
                              int               signature_start,
                              int               old_byte_order,
index 52b6c73..e1cf52e 100644 (file)
 #include <dbus/dbus-marshal-basic.h>
 #include <dbus/dbus-marshal-validate.h>
 
-#ifndef PACKAGE
-#error "config.h not included here"
-#endif
-
 typedef struct DBusHeader      DBusHeader;
 typedef struct DBusHeaderField DBusHeaderField;
 
index 14f38b2..e533227 100644 (file)
 #include <dbus/dbus-protocol.h>
 #include <dbus/dbus-list.h>
 
-#ifndef PACKAGE
-#error "config.h not included here"
-#endif
-
 typedef struct DBusTypeReader      DBusTypeReader;
 typedef struct DBusTypeWriter      DBusTypeWriter;
 typedef struct DBusTypeReaderClass DBusTypeReaderClass;
index d09acc6..2941999 100644 (file)
 
 #include <config.h>
 
-#ifndef PACKAGE
-#error "config.h not included here"
-#endif
-
 /**
  * @addtogroup DBusMarshal
  *