[gtksourceview] Use GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_MAX_ALLOWED, etc



commit 28137f973af3dcbdfe886b40bcaabbde107904e6
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Mar 10 19:34:07 2013 +0100

    Use GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_MAX_ALLOWED, etc
    
    It will report warnings when the required version of GLib or GTK+ is not
    correct.
    
    For example if we use a new GTK+ function without bumping the dependency
    version, a warning will be printed.
    
    It assumes that GLIB_CHECK_VERSION() is not used, so the minimum
    required version is the same as the maximum allowed one.

 configure.ac |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d61cbe8..e2db901 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,11 @@ AC_CHECK_HEADERS([unistd.h])
 
 # Dependencies
 GLIB_REQUIRED_VERSION=2.34.0
+GLIB_REQUIRED_VERSION_MACRO=GLIB_VERSION_2_34
+
 GTK_REQUIRED_VERSION=3.4.0
+GDK_REQUIRED_VERSION_MACRO=GDK_VERSION_3_4
+
 LIBXML_REQUIRED_VERSION=2.6.0
 GLADE_UI_REQUIRED=3.9
 
@@ -64,7 +68,11 @@ if test "$enable_deprecations" = "yes"; then
 -DGTK_DISABLE_DEPRECATED \
 -DGDK_PIXBUF_DISABLE_DEPRECATED \
 -DGNOME_DISABLE_DEPRECATED \
--DGSEAL_ENABLE"
+-DGSEAL_ENABLE \
+-DGLIB_VERSION_MIN_REQUIRED=$GLIB_REQUIRED_VERSION_MACRO \
+-DGLIB_VERSION_MAX_ALLOWED=$GLIB_REQUIRED_VERSION_MACRO \
+-DGDK_VERSION_MIN_REQUIRED=$GDK_REQUIRED_VERSION_MACRO \
+-DGDK_VERSION_MAX_ALLOWED=$GDK_REQUIRED_VERSION_MACRO"
 
        AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
 fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]