]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Enable Autoconf's AC_C_INLINE to avoid compilation failure with gcc -ansi.
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 11 Oct 2007 09:27:28 +0000 (10:27 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 11 Oct 2007 09:27:28 +0000 (10:27 +0100)
If inline isn't recognised (e.g. on a strict C90 compiler, like gcc -ansi) this
defines it to __inline__, __inline or nothing, whichever works. This is safe,
because we never use inline except in combination with static.

ChangeLog
configure.in

index 1e12c9098410f85ddef0e96e18a0c1cdab6ad10e..d0e09f6cb04b97324d93e204aa51f20b02b5844a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-10-11  Simon McVittie  <simon.mcvittie@collabora.co.uk>
 
+       * configure.in: enable Autoconf's AC_C_INLINE to avoid compilation
+       failure with gcc -ansi
        * dbus/dbus-macros.h, dbus/dbus-arch-deps.h.in: Use new macro
        _DBUS_GNUC_EXTENSION (the same as G_GNUC_EXTENSION) to avoid -ansi
        warnings about use of "long long".
index 4ed2e1c070ed86d574486b7060cc5b3550f91ba6..d2c5e568e8a159edd45f818634445e952106e5b4 100644 (file)
@@ -59,6 +59,7 @@ AM_PROG_CC_C_O
 AC_PROG_CXX
 AC_ISC_POSIX
 AC_HEADER_STDC
+AC_C_INLINE
 
 AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests],[enable unit test code]),enable_tests=$enableval,enable_tests=$USE_MAINTAINER_MODE)
 AC_ARG_ENABLE(ansi, AS_HELP_STRING([--enable-ansi],[enable -ansi -pedantic gcc flags]),enable_ansi=$enableval,enable_ansi=no)