]> www.infradead.org Git - pidgin-chime.git/commitdiff
Set GLIB_VERSION_MIN_REQUIRED and GLIB_VERSION_MAX_ALLOWED
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 12 Nov 2023 19:04:53 +0000 (14:04 -0500)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 12 Nov 2023 19:06:47 +0000 (14:06 -0500)
The minimum is fairly ancieht because we build some gtk-2.0 and EDS bits,
and perhaps we could do that *only* for those components as the rest of
the code is clean. But this is OK for now.

Add a maximum too, to help avoid using stuff which is too new to be usable
on ancient distributions we might still want to support. Like g_memdup2().

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
configure.ac

index f6e0c538d7356348191f5e56eda6a91fd5e22d9c..d3b8a93a0154c1d326c3624e1177d722eaeb7979 100644 (file)
@@ -60,6 +60,11 @@ AC_SEARCH_LIBS([dlopen],[dl dld],
 )
 AC_SUBST([DLOPEN_LIBS])
 
+# Older gtk-2.0 (for chimeseen) GTypeDebugFlags, deprecated in 2.36.
+# EDS code uses GTimeVal, deprecated in 2.62
+AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_34, [Ignore post 2.60 deprecations])
+AC_DEFINE(GLIB_VERSION_MAX_ALLOWED, GLIB_VERSION_2_62, [Prevent post 2.60 APIs])
+
 PKG_CHECK_MODULES(DBUS, [dbus-1])
 PKG_CHECK_MODULES(GNUTLS, [gnutls >= 3.2.0])
 PKG_CHECK_MODULES(FARSTREAM, [farstream-0.2])