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.
This commit is contained in:
Benjamin Otte 2011-01-11 14:26:29 +01:00
parent 0e05b14044
commit 66f164c0ea

View File

@ -381,10 +381,12 @@ dump_type (GType type, const char *symbol, GOutputStream *out)
* Returns: %TRUE on success, %FALSE on error * Returns: %TRUE on success, %FALSE on error
*/ */
#ifndef G_IREPOSITORY_COMPILATION #ifndef G_IREPOSITORY_COMPILATION
static static gboolean
#endif dump_irepository (const char *arg, GError **error)
#else
gboolean gboolean
g_irepository_dump (const char *arg, GError **error) g_irepository_dump (const char *arg, GError **error)
#endif
{ {
GHashTable *output_types; GHashTable *output_types;
char **args; char **args;