Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2012-05-19 03:56:01 +0400
committerEion Robb <eion@robbmob.com>2012-05-19 03:56:01 +0400
commit6eda1c8266ae7d3b5a60e273cad6b17eb6d25699 (patch)
treeaff2fb5398b2f2f4e96bab36db2496597040d0ab /libskype.c
parentb2492388ada8bd56ec33f73372598df48ae43822 (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.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libskype.c b/libskype.c
index 522e7e5..8f320da 100644
--- a/libskype.c
+++ b/libskype.c
@@ -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 */