girepository: Various fixes to symbol visibility and compilation defines

To make the setup in libgirepository match that in libgio.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>

Helps: #3155
This commit is contained in:
Philip Withnall
2023-10-25 18:30:38 +01:00
parent 5f012e9f12
commit f0e11e82d3
4 changed files with 9 additions and 3 deletions

View File

@@ -32,7 +32,7 @@
* to libgirepository; see
* https://bugzilla.gnome.org/show_bug.cgi?id=630342
*/
#ifdef G_IREPOSITORY_COMPILATION
#ifdef GI_COMPILATION
#include "config.h"
#include "girepository.h"
#endif
@@ -543,7 +543,7 @@ dump_error_quark (GQuark quark, const char *symbol, GOutputStream *out)
*
* Returns: %TRUE on success, %FALSE on error
*/
#ifndef G_IREPOSITORY_COMPILATION
#ifndef GI_COMPILATION
static gboolean
dump_irepository (const char *arg, GError **error) G_GNUC_UNUSED;
static gboolean