summaryrefslogtreecommitdiffstats
path: root/src/test-helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/test-helpers.h')
-rw-r--r--src/test-helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test-helpers.h b/src/test-helpers.h
index bda48599e..001356e65 100644
--- a/src/test-helpers.h
+++ b/src/test-helpers.h
@@ -23,7 +23,10 @@ T* createSuiteAndDocument( void (*fun)(T*&) )
{
T* suite = 0;
+#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init();
+#endif
+
Inkscape::GC::init();
if ( !inkscape_get_instance() )
{