Hi all,

As some of you who use a recent version of glib may know, g_thread_init
has been deprecated (and every 'make' comes with a nice warning about
this).

This patch fixes that on newer glib versions (such as what I use on Arch
Linux), but I'm not sure if it breaks on older glib versions.

Does anyone who uses an old enough version of glib to actually need
g_thread_init have time to test the patch and make sure it doesn't break
their compilation?

diff --git a/main.c b/main.c
index ca0bebe..2888b4c 100644
--- a/main.c
+++ b/main.c
@@ -3150,8 +3150,10 @@ main(int argc, char *argv[]) {
     else
         config->configfile = g_strdup_printf(RCFILE);
 
+#ifndef __G_DEPRECATED_THREAD_H__
     if (!g_thread_supported())
         g_thread_init(NULL);
+#endif
 
     if (winid) {
         if (strncmp(winid, "0x", 2) == 0) {

-- 
Matthew Carter ([email protected])
http://ahungry.com
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Vimprobable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vimprobable-users

Reply via email to