From: Manish Singh Date: Mon, 7 Feb 2005 06:01:18 +0000 (+0000) Subject: feed the contents of config.h and glibconfig.h into the preprocessor, X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f5db7d0bb31ac298b2aeaa28f588f8cc059a9bd8;p=dana%2Fcg-glib.git feed the contents of config.h and glibconfig.h into the preprocessor, Sun Feb 6 22:00:46 2005 Manish Singh * abicheck.sh: feed the contents of config.h and glibconfig.h into the preprocessor, since glib.symbols could need #defines from them. --- diff --git a/gobject/ChangeLog b/gobject/ChangeLog index f9624f58..8fbdabcf 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 6 22:00:46 2005 Manish Singh + + * abicheck.sh: feed the contents of config.h and glibconfig.h + into the preprocessor, since glib.symbols could need #defines + from them. + 2005-01-12 Matthias Clasen Cosmetic fixes (#163792, Benoît Carpentier): diff --git a/gobject/abicheck.sh b/gobject/abicheck.sh index 3875e7f3..745db40a 100755 --- a/gobject/abicheck.sh +++ b/gobject/abicheck.sh @@ -1,5 +1,13 @@ #! /bin/sh -cpp -P -DG_OS_UNIX ${srcdir:-.}/gobject.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi +egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp + +INCLUDES="-include ${top_builddir:-..}/config.h" +INCLUDES="$INCLUDES -include glibconfig.cpp" + +cpp -P $INCLUDES ${srcdir:-.}/gobject.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi +rm glibconfig.cpp + nm -D .libs/libgobject-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi + diff -u expected-abi actual-abi && rm expected-abi actual-abi