From 3a6563d039e38a171ce5a5c09ecfe7981797e2c4 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 22 Apr 2013 15:29:43 +0200 Subject: 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. --- src/cgg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cgg.c') 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(); -- cgit v1.2.3