diff options
author | Benjamin Otte <otte@redhat.com> | 2011-01-11 14:26:29 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-01-11 15:11:05 +0100 |
commit | 5d999862113fbc655429a0dd9bd7583ba3848434 (patch) | |
tree | cc958c58a20d79efb829e7f60ea6143a805db0c5 /girepository | |
parent | 3f8629d719a43332d9ac31d706920d0bec8746f4 (diff) | |
download | gobject-introspection-5d999862113fbc655429a0dd9bd7583ba3848434.tar.gz |
scanner: Rename g_irepository_dump when included from the dumper
This avoids a naming conflict when compiling GiRepository.gir, where
g_irepository_dump() was defined in an included header.
Diffstat (limited to 'girepository')
-rw-r--r-- | girepository/gdump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/girepository/gdump.c b/girepository/gdump.c index cdede612..1b9ffd4f 100644 --- a/girepository/gdump.c +++ b/girepository/gdump.c @@ -381,10 +381,12 @@ dump_type (GType type, const char *symbol, GOutputStream *out) * Returns: %TRUE on success, %FALSE on error */ #ifndef G_IREPOSITORY_COMPILATION -static -#endif +static gboolean +dump_irepository (const char *arg, GError **error) +#else gboolean g_irepository_dump (const char *arg, GError **error) +#endif { GHashTable *output_types; char **args; |