From 397fbd7032b57fec6aee9b8eac4ccf693aedc63a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 27 Feb 2017 21:23:29 +0100 Subject: Call g_type_init only when GLib is old --- src/colloquium.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/colloquium.c') diff --git a/src/colloquium.c b/src/colloquium.c index 657b7ef..18f3b00 100644 --- a/src/colloquium.c +++ b/src/colloquium.c @@ -1,7 +1,7 @@ /* * colloquium.c * - * Copyright © 2013-2014 Thomas White + * Copyright © 2013-2017 Thomas White * * This file is part of Colloquium. * @@ -410,7 +410,9 @@ int main(int argc, char *argv[]) } +#if !GLIB_CHECK_VERSION(2,36,0) g_type_init(); +#endif app = colloquium_new(); status = g_application_run(G_APPLICATION(app), argc, argv); -- cgit v1.2.3