diff options
author | Christian Hesse <mail@eworm.de> | 2013-05-29 21:52:51 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-05-29 21:52:51 +0200 |
commit | bf02bb046ac6994ed7d4b807b6f96d29cc3e77a3 (patch) | |
tree | 53102bd31ff7378b0b3afd7d3304b15d01112a0b /cqrlogo.c | |
parent | 53da3d77c5253804a02fbf93a61e7b4ec0913c4b (diff) | |
download | cqrlogo-bf02bb046ac6994ed7d4b807b6f96d29cc3e77a3.tar.gz cqrlogo-bf02bb046ac6994ed7d4b807b6f96d29cc3e77a3.tar.zst |
only init type system for glib < 2.36
Diffstat (limited to 'cqrlogo.c')
-rw-r--r-- | cqrlogo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |