From bf02bb046ac6994ed7d4b807b6f96d29cc3e77a3 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 29 May 2013 21:52:51 +0200 Subject: only init type system for glib < 2.36 --- cqrlogo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cqrlogo.c') diff --git a/cqrlogo.c b/cqrlogo.c index 6513ef8..612d620 100644 --- a/cqrlogo.c +++ b/cqrlogo.c @@ -89,10 +89,10 @@ int main(int argc, char **argv) { regfree(&preg); free(pattern); - /* initialize type system - * Since GLib 2.36, the type system is initialised automatically - * and this function does nothing. */ + /* initialize type system for glib < 2.36 */ +#ifndef GLIB_VERSION_2_26 g_type_init(); +#endif if ((pixbuf = encode_qrcode(http_referer)) == NULL) { if ((pixbuf = encode_qrcode(server_name)) == NULL) { -- cgit v1.2.3-54-g00ecf