Skip to content

Commit 823adc3

Browse files
committed
only call g_type_init on old GLib versions
1 parent a6960f0 commit 823adc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dbus2vdr.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ cPluginDbus2vdr::cPluginDbus2vdr(void)
213213
tmp = getenv("UPSTART_SESSION");
214214
if (tmp)
215215
dbus2vdr_UpstartSession = tmp;
216-
216+
#if (GLIB_MAJOR_VERSION < 2) || ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION < 36))
217217
g_type_init();
218+
#endif
218219
}
219220

220221
cPluginDbus2vdr::~cPluginDbus2vdr()

0 commit comments

Comments
 (0)