Include GObject's visibility header

The gobject-introspection build goes through the GLib types when
generating the introspection data for GLib, but it does not include
glib-object.h, otherwise all GObject symbols would end up inside the
GLib namespace. This means we need to import the gobject-visibility.h
header inside glib-types.h. Since the header is guarded by a once
pragma, it doesn't really affect any legitimate user of the C API.
This commit is contained in:
Emmanuele Bassi 2023-01-08 00:28:43 +00:00
parent ec3b1bfc45
commit 79fd62ccf2

View File

@ -24,6 +24,7 @@
#endif
#include <glib.h>
#include <gobject/gobject-visibility.h>
G_BEGIN_DECLS