mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 07:53:39 +02:00
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:
6
gdump.c
6
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;
|
||||
|
Reference in New Issue
Block a user