summaryrefslogtreecommitdiffstats
path: root/cqrlogo.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-05-29 21:52:51 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-05-29 21:52:51 +0200
commitbf02bb046ac6994ed7d4b807b6f96d29cc3e77a3 (patch)
tree53102bd31ff7378b0b3afd7d3304b15d01112a0b /cqrlogo.c
parent53da3d77c5253804a02fbf93a61e7b4ec0913c4b (diff)
downloadcqrlogo-bf02bb046ac6994ed7d4b807b6f96d29cc3e77a3.tar.gz
cqrlogo-bf02bb046ac6994ed7d4b807b6f96d29cc3e77a3.tar.zst
only init type system for glib < 2.36
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) {