gtype: Fix use of potentially undefined GVoidFunc

It’s defined in gutils.h, but various users of GLib might not have
access to that.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Reviewed-by: nobody

https://bugzilla.gnome.org/show_bug.cgi?id=793272
This commit is contained in:
Philip Withnall 2018-02-16 17:42:55 +00:00
parent c01c255895
commit 55e1c6185f

View File

@ -2008,7 +2008,7 @@ type_name##_get_type (void) \
g_type_register_static_simple (G_TYPE_INTERFACE, \
g_intern_static_string (#TypeName), \
sizeof (TypeName##Interface), \
(GClassInitFunc)(GVoidFunc)type_name##_default_init, \
(GClassInitFunc)(void (*)(void)) type_name##_default_init, \
0, \
(GInstanceInitFunc)NULL, \
(GTypeFlags) 0); \