diff options
author | Ross Burton <ross@burtonini.com> | 2007-09-11 10:34:07 +0100 |
---|---|---|
committer | Ross Burton <ross@burtonini.com> | 2007-09-11 10:34:07 +0100 |
commit | c08a7f910c4c746ba790375be2d0f0682471cf06 (patch) | |
tree | a3d92134f0661b68a66174a6d990df47f6390448 /dbus/dbus-gtype-specialized.c | |
parent | b2bcb0f3fdf8eaec9257f48dd0a0e2ca03220775 (diff) | |
download | dbus-glib-c08a7f910c4c746ba790375be2d0f0682471cf06.tar.gz |
Fix build with non-gcc compilers
AIX's compiler and some non-c99 compilers are braindead, massage the code to
work with them (#11675, thanks Peter O'Gorman).
Diffstat (limited to 'dbus/dbus-gtype-specialized.c')
-rw-r--r-- | dbus/dbus-gtype-specialized.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dbus/dbus-gtype-specialized.c b/dbus/dbus-gtype-specialized.c index aed4ff4..4046d8b 100644 --- a/dbus/dbus-gtype-specialized.c +++ b/dbus/dbus-gtype-specialized.c @@ -467,7 +467,9 @@ dbus_g_type_get_map (const char *container, GType key_specialization, GType value_specialization) { - GType types[2] = {key_specialization, value_specialization}; + GType types[2]; + types[0] = key_specialization; + types[1] = value_specialization; return lookup_or_register_specialized (container, 2, types); } |