test-bus-marshal.c: do not call g_type_init() for modern glib versions
This commit is contained in:
parent
68395007f3
commit
34f856cbd0
|
@ -96,7 +96,9 @@ int main(int argc, char *argv[]) {
|
|||
GDBusMessage *g;
|
||||
char *p;
|
||||
|
||||
#if !defined(GLIB_VERSION_2_36)
|
||||
g_type_init();
|
||||
#endif
|
||||
|
||||
g = g_dbus_message_new_from_blob(buffer, sz, 0, NULL);
|
||||
p = g_dbus_message_print(g, 0);
|
||||
|
|
Loading…
Reference in a new issue