diff options
author | Eion Robb <eion@robbmob.com> | 2012-05-19 03:56:01 +0400 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2012-05-19 03:56:01 +0400 |
commit | 6eda1c8266ae7d3b5a60e273cad6b17eb6d25699 (patch) | |
tree | aff2fb5398b2f2f4e96bab36db2496597040d0ab /libskype.c | |
parent | b2492388ada8bd56ec33f73372598df48ae43822 (diff) |
g_thread_init() is deprecated as of glib 2.32. Remove the use of it at compile time and check if it's needed at runtime.
Diffstat (limited to 'libskype.c')
-rw-r--r-- | libskype.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -404,8 +404,11 @@ plugin_init(PurplePlugin *plugin) bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); #endif - if (!g_thread_supported ()) - g_thread_init (NULL); +#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 32 + if (glib_check_version(2, 32, 0)) + if (!g_thread_supported ()) + g_thread_init (NULL); +#endif this_plugin = plugin; /* plugin's path at this_plugin->path */ |