summaryrefslogtreecommitdiff
path: root/json-glib/tests/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/tests/object.c')
-rw-r--r--json-glib/tests/object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/json-glib/tests/object.c b/json-glib/tests/object.c
index 80ed739..750ab88 100644
--- a/json-glib/tests/object.c
+++ b/json-glib/tests/object.c
@@ -166,7 +166,9 @@ int
main (int argc,
char *argv[])
{
+#if !GLIB_CHECK_VERSION (2, 35, 1)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/object/empty-object", test_empty_object);