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
*/
#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;