summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-02-18 14:27:48 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-02-22 13:08:11 +0000
commit0e90efd5b2c2e040763733761a8a320ccc8544c7 (patch)
treea244776b18ea3ce6cb0bed429e6668318221ac42
parent0ebd4ae912568caa40b714ba166211fa31b82af8 (diff)
downloaddbus-0e90efd5b2c2e040763733761a8a320ccc8544c7.tar.gz
Don't warn for functions deprecated since GLib 2.26
Also warn if we inadvertently use a function introduced since then. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=59971 Reviewed-by: Colin Walters <walters@verbum.org>
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9b578ed4..5c1a7e58 100644
--- a/configure.ac
+++ b/configure.ac
@@ -211,6 +211,9 @@ fi
# default (unless you don't have GLib), because they don't bloat the library
# or binaries.
+AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_26], [Ignore post-2.26 deprecations])
+AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [GLIB_VERSION_2_26], [Prevent post-2.26 APIs])
+
with_glib=yes
if test "x$enable_modular_tests" != xno; then