This avoids a naming conflict when compiling GiRepository.gir, where
g_irepository_dump() was defined in an included header.
* 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;
exit (1);
}
- if (!g_irepository_dump (argv[1] + strlen(introspect_dump_prefix), &error))
+ if (!dump_irepository (argv[1] + strlen(introspect_dump_prefix), &error))
{
g_printerr ("%%s\\n", error->message);
exit (1);