From 18b5bf62a216e250d2f5292b1a7b145f221ef666 Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 24 Aug 2015 17:38:41 +0200 Subject: Define max/min version of GLib This warns us of using symbols like g_assert_null not available in GLib 2.36 --- configure.ac | 6 ++++++ mate-about/mate-about.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c71eb46..7a2891a 100644 --- a/configure.ac +++ b/configure.ac @@ -73,6 +73,12 @@ if test "x$enable_deprecation_flags" = "xyes"; then AC_SUBST(DISABLE_DEPRECATED_CFLAGS) fi +# GLib min/max required versions +AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [GLIB_VERSION_2_36], + [Warn on use of APIs added after GLib 2.36]) +AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_36], + [Warn on use of APIs deprecated before GLib 2.36]) + # Should we build mate-about? Useful for people who need to build # two mate-desktop using two different versions of GTK+ AC_ARG_ENABLE([mate-about], diff --git a/mate-about/mate-about.h b/mate-about/mate-about.h index a06cad9..f4ecba0 100644 --- a/mate-about/mate-about.h +++ b/mate-about/mate-about.h @@ -21,10 +21,10 @@ #ifndef __MATE_ABOUT_H__ #define __MATE_ABOUT_H__ +#include // autogenerated by ./configure #include #include // for gettext #include -#include // autogenerated by ./configure #include -- cgit v1.2.1