summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2013-07-07 21:47:07 -0400
committerHubert Figuière <hub@figuiere.net>2013-07-07 21:48:05 -0400
commit3dd0951e431c8d54a1d57679b2e7c662dad3e318 (patch)
tree91a626348cecabcdb91eddb2a3d3cd3f1e3bf868 /demo
parente6944408e31636154ee52c7f8252e7b7781a43c1 (diff)
Fix a warning on glib 2.36
Diffstat (limited to 'demo')
-rw-r--r--demo/pixbufload.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/demo/pixbufload.c b/demo/pixbufload.c
index 9176da7..59c9475 100644
--- a/demo/pixbufload.c
+++ b/demo/pixbufload.c
@@ -1,7 +1,7 @@
/*
* libopenraw - gdk.c
*
- * Copyright (C) 2007 Hubert Figuiere
+ * Copyright (C) 2007-2013 Hubert Figuiere
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -44,7 +44,10 @@ main(int argc, char **argv)
(void)argc;
or_debug_set_level(DEBUG2);
+#if !GLIB_CHECK_VERSION(2,36,0)
+ /* deprecated in 2.36 */
g_type_init();
+#endif
if(!filename || !*filename) {
printf("No input file name\n");