summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-12-14 10:54:36 -0600
committerScott Balneaves <[email protected]>2012-12-14 10:54:36 -0600
commit18ef300a07d7741c6503775b183f857858924b18 (patch)
treed1eb43d64518ac47c9555360fc45582485e831bf
parent07ff67922a68f69f64e89c8997add9976ed419d2 (diff)
downloadlibmateweather-18ef300a07d7741c6503775b183f857858924b18.tar.bz2
libmateweather-18ef300a07d7741c6503775b183f857858924b18.tar.xz
Fix deprecations
-rw-r--r--python/mateweathermodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/mateweathermodule.c b/python/mateweathermodule.c
index 9427849..5bd2775 100644
--- a/python/mateweathermodule.c
+++ b/python/mateweathermodule.c
@@ -36,7 +36,11 @@ initmateweather(void)
PyObject *m, *d;
init_pygobject ();
+#if GLIB_CHECK_VERSION (2, 32, 0)
+ /* g_thread_init (NULL); */
+#else
g_thread_init (NULL);
+#endif
m = Py_InitModule ("mateweather", pymateweather_functions);
d = PyModule_GetDict (m);