summaryrefslogtreecommitdiff
path: root/test-tree-magic.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-09 22:09:56 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-09 22:12:42 +0200
commit2397314542265405498ea8c82121c174ed9011a5 (patch)
tree0ae6c0daa8c95d48acacccb2c7ecc8df8f717da9 /test-tree-magic.c
parent01e9a5a924a9f382f5e75acd5980a2e058c6ce08 (diff)
test: Call g_type_init() with older glib
Only call g_type_init() when compiling against an older glib. https://bugs.freedesktop.org/show_bug.cgi?id=70255
Diffstat (limited to 'test-tree-magic.c')
-rw-r--r--test-tree-magic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test-tree-magic.c b/test-tree-magic.c
index 9b4dfaf..fd5cd7e 100644
--- a/test-tree-magic.c
+++ b/test-tree-magic.c
@@ -637,7 +637,10 @@ int main (int argc, char **argv)
char *content, **lines;
guint i;
+#if GLIB_CHECK_VERSION(2,36,0)
+#else
g_type_init ();
+#endif
if (argc != 2) {
g_print ("Usage: %s [file]\n", argv[0]);