[gssdp] Drop g_type_init for glib >= 2.35



commit c46f1f5e7f45217d584d0e9afdef0320d19537da
Author: Jens Georg <mail jensge org>
Date:   Fri Nov 30 14:29:15 2012 +0100

    Drop g_type_init for glib >= 2.35

 tests/test-browser.c |    2 ++
 tests/test-publish.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-browser.c b/tests/test-browser.c
index ac1c15b..c09b017 100644
--- a/tests/test-browser.c
+++ b/tests/test-browser.c
@@ -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,
diff --git a/tests/test-publish.c b/tests/test-publish.c
index 52c819c..601bbfb 100644
--- a/tests/test-publish.c
+++ b/tests/test-publish.c
@@ -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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]