Skip to content

Commit

Permalink
only call g_type_init on old GLib versions
Browse files Browse the repository at this point in the history
  • Loading branch information
flensrocker committed Feb 13, 2016
1 parent a6960f0 commit 823adc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbus2vdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,9 @@ cPluginDbus2vdr::cPluginDbus2vdr(void)
tmp = getenv("UPSTART_SESSION");
if (tmp)
dbus2vdr_UpstartSession = tmp;

#if (GLIB_MAJOR_VERSION < 2) || ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 36))
g_type_init();
#endif
}

cPluginDbus2vdr::~cPluginDbus2vdr()
Expand Down

0 comments on commit 823adc3

Please sign in to comment.