Drop g_type_init for glib >= 2.35
authorJens Georg <mail@jensge.org>
Fri, 30 Nov 2012 13:29:15 +0000 (14:29 +0100)
committerJens Georg <mail@jensge.org>
Fri, 30 Nov 2012 13:29:15 +0000 (14:29 +0100)
tests/test-browser.c
tests/test-publish.c

index ac1c15b..c09b017 100644 (file)
@@ -56,7 +56,9 @@ main (int    argc,
         GError *error;
         GMainLoop *main_loop;
 
+#if !GLIB_CHECK_VERSION (2, 35, 0)
         g_type_init ();
+#endif
 
         error = NULL;
         client = g_initable_new (GSSDP_TYPE_CLIENT,
index 52c819c..601bbfb 100644 (file)
@@ -32,7 +32,9 @@ main (int    argc,
         GError *error;
         GMainLoop *main_loop;
 
+#if !GLIB_CHECK_VERSION (2, 35, 0)
         g_type_init ();
+#endif
 
         error = NULL;
         client = g_initable_new (GSSDP_TYPE_CLIENT,