From 43aac613f1c2a56aa672c36c157c9b8eb193ac25 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 17 Jul 2017 10:16:06 +0100 Subject: Conditionall call g_type_init() after a version check There's no need to call g_type_init() since GLib 2.36, so let's hide it when building against newer versions of GLib. --- tests/test-error.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test-error.c') diff --git a/tests/test-error.c b/tests/test-error.c index b7b9662..afcb59b 100644 --- a/tests/test-error.c +++ b/tests/test-error.c @@ -29,7 +29,9 @@ main () { NotifyNotification *n; +#if !GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif notify_init ("Error Handling"); -- cgit v1.2.1