[gtksourceview] build: remove VERSION_MIN_REQUIRED and VERSION_MAX_ALLOWED



commit 1fafc2642f8f51975877fadb3bba7f364fe9e518
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Jun 28 11:15:34 2013 +0200

    build: remove VERSION_MIN_REQUIRED and VERSION_MAX_ALLOWED
    
    When compiling the code, there were no deprecation warnings (except for
    g_type_class_adjust_private_offset()).
    
    To have all deprecation warnings, the only solution is to not use
    VERSION_MIN_REQUIRED and VERSION_MAX_ALLOWED...
    
    Having the min_required at 2.34 and max_allowed at 2.38 doesn't work.
    Having only min_required or only max_allowed doesn't work too.
    I think I tried all the possibilities.
    
    The purpose of having the min_required and max_allowed was to make sure
    that the required versions were correct. Now if we use a new symbol, we
    must update the required version, we won't get warnings about that.

 configure.ac |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c86f75b..4d49e1c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,12 +57,8 @@ LT_INIT([disable-static])
 AC_CHECK_HEADERS([unistd.h])
 
 # Dependencies
-GLIB_REQUIRED_VERSION=2.37.3
-GLIB_REQUIRED_VERSION_MACRO=GLIB_VERSION_2_38
-
+GLIB_REQUIRED_VERSION=2.34.0
 GTK_REQUIRED_VERSION=3.8.0
-GDK_REQUIRED_VERSION_MACRO=GDK_VERSION_3_8
-
 LIBXML_REQUIRED_VERSION=2.6.0
 GLADE_UI_REQUIRED=3.9
 
@@ -95,11 +91,7 @@ if test "$enable_deprecations" = "yes"; then
 -DGTK_DISABLE_DEPRECATED \
 -DGDK_PIXBUF_DISABLE_DEPRECATED \
 -DGNOME_DISABLE_DEPRECATED \
--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"
+-DGSEAL_ENABLE"
 
        AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
 fi


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