From: Martin Willi Date: Thu, 18 Jul 2013 12:19:37 +0000 (+0200) Subject: soup: omit deprecated g_type_init() when using >= GLIB 2.36 X-Git-Tag: 5.1.0rc1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d5a20061a44bf3fe5fe8c6c9607fc4c95330f00;p=thirdparty%2Fstrongswan.git soup: omit deprecated g_type_init() when using >= GLIB 2.36 --- diff --git a/src/libstrongswan/plugins/soup/soup_plugin.c b/src/libstrongswan/plugins/soup/soup_plugin.c index 1260a5a60c..f57ed81c3f 100644 --- a/src/libstrongswan/plugins/soup/soup_plugin.c +++ b/src/libstrongswan/plugins/soup/soup_plugin.c @@ -65,7 +65,9 @@ plugin_t *soup_plugin_create() { private_soup_plugin_t *this; +#if !GLIB_CHECK_VERSION(2,36,0) g_type_init(); +#endif #if !GLIB_CHECK_VERSION(2,23,0) if (!g_thread_get_initialized())