summaryrefslogtreecommitdiff
path: root/src/cgg.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2013-04-22 15:29:43 +0200
committerTomas Bzatek <tbzatek@redhat.com>2013-04-22 15:30:18 +0200
commit3a6563d039e38a171ce5a5c09ecfe7981797e2c4 (patch)
tree873f2a0072f8d045c71a735b38bb72f3f1248394 /src/cgg.c
parent14763f09fe457dc1781ef8b15014496ebae536cf (diff)
downloadcataract-3a6563d039e38a171ce5a5c09ecfe7981797e2c4.tar.xz
Use new glib threading API
The gthread library has been merged in glib and the threading API has changed a little. Since changes are negligible, there's no point of losing support of older glib releases, thus make it conditional.
Diffstat (limited to 'src/cgg.c')
-rw-r--r--src/cgg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cgg.c b/src/cgg.c
index 4bff606..2891f6f 100644
--- a/src/cgg.c
+++ b/src/cgg.c
@@ -125,7 +125,9 @@ main (int argc, char* argv[])
*/
LIBXML_TEST_VERSION;
+#ifndef HAVE_GLIB_NEW_THREADS
g_thread_init (NULL);
+#endif
/* Initialize ImageMagick at this point, for multithreading safety */
MagickWandGenesis();