mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
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:
parent
c01c255895
commit
55e1c6185f
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user