From 0e90efd5b2c2e040763733761a8a320ccc8544c7 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 18 Feb 2013 14:27:48 +0000 Subject: [PATCH] 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 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=59971 Reviewed-by: Colin Walters --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 9b578ed4b..5c1a7e588 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 -- 2.47.3