nm: omit deprecated g_type_init() when using >= GLIB 2.36
authorMartin Willi <martin@revosec.ch>
Thu, 18 Jul 2013 12:21:17 +0000 (14:21 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 18 Jul 2013 12:21:17 +0000 (14:21 +0200)
src/charon-nm/nm/nm_backend.c

index c839782..f474dad 100644 (file)
@@ -116,7 +116,9 @@ static bool nm_backend_init()
 {
        nm_backend_t *this;
 
+#if !GLIB_CHECK_VERSION(2,36,0)
        g_type_init ();
+#endif
 
 #if !GLIB_CHECK_VERSION(2,23,0)
        if (!g_thread_supported())