]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Add glib 2.38 support
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 3 Jan 2019 22:54:56 +0000 (23:54 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Sun, 6 Jan 2019 20:24:10 +0000 (21:24 +0100)
configure.ac
test/test-utils-glib.h

index bdd82d4604d18f7b483a8e6525989c5390631cff..a5a7fd3e9dcaf44413b75011f919cb3543a02123 100644 (file)
@@ -271,7 +271,7 @@ fi
 dnl Don't do anything too subtle here, because the CMake build system
 dnl parses these lines with regular expressions. If necessary, adjust
 dnl cmake/modules/MacrosAutotools.cmake to compensate.
-AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_40], [Ignore post-2.40 deprecations])
+AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_38], [Ignore post-2.38 deprecations])
 AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [G_ENCODE_VERSION(2,44)], [Prevent post-2.44 APIs])
 
 with_glib=yes
index 93b52b74ffd3cde58da2a51639be2816af7813c7..ce8171bd19cde508d1f53aae1a7304851f8319f3 100644 (file)
@@ -121,6 +121,10 @@ backported_g_steal_pointer (gpointer pointer_to_pointer)
 }
 #endif
 
+#ifndef g_assert_nonnull
+#define g_assert_nonnull(a) g_assert (a != NULL)
+#endif
+
 gboolean test_check_tcp_works (void);
 
 void test_store_result_cb (GObject *source_object,