aboutsummaryrefslogtreecommitdiffstats
path: root/cqrlogo.c
diff options
context:
space:
mode:
Diffstat (limited to 'cqrlogo.c')
-rw-r--r--cqrlogo.c6
1 files changed, 3 insertions, 3 deletions
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) {