summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-pangocairo-threads.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-pangocairo-threads.c b/tests/test-pangocairo-threads.c
index 6d497601..1dfe53c4 100644
--- a/tests/test-pangocairo-threads.c
+++ b/tests/test-pangocairo-threads.c
@@ -78,6 +78,10 @@ main (int argc, char **argv)
if (argc > 2)
num_iters = atoi (argv[2]);
+#if !GLIB_CHECK_VERSION (2, 35, 3)
+ g_type_init();
+#endif
+
g_mutex_lock (&mutex);
for (i = 0; i < num_threads; i++)