diff options
Diffstat (limited to 'examples/C/glib/add-connection-dbus-glib.c')
-rw-r--r-- | examples/C/glib/add-connection-dbus-glib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/C/glib/add-connection-dbus-glib.c b/examples/C/glib/add-connection-dbus-glib.c index c7c1a3f11..354dcb75a 100644 --- a/examples/C/glib/add-connection-dbus-glib.c +++ b/examples/C/glib/add-connection-dbus-glib.c @@ -102,8 +102,10 @@ int main (int argc, char *argv[]) DBusGConnection *bus; DBusGProxy *proxy; +#if !GLIB_CHECK_VERSION (2, 35, 0) /* Initialize GType system */ g_type_init (); +#endif /* Get system bus */ bus = dbus_g_bus_get (DBUS_BUS_SYSTEM, NULL); |