Some fixes

This commit is contained in:
Matthias Clasen 2005-05-12 22:49:59 +00:00 committed by Evan Welsh
parent 18f3b27fa0
commit f10d33064a

View File

@ -64,15 +64,15 @@ format_output (guchar *metadata,
if (!no_init) if (!no_init)
{ {
g_string_append_printf (result, g_string_append_printf (result,
"void\n" "__attribute__((constructor)) void\n"
"register_metadata (void) __attribute__((constructor))\n" "register_metadata (void)\n"
"{\n" "{\n"
"\tg_irepository_register (NULL, _G_METADATA);\n" "\tg_irepository_register (NULL, _G_METADATA);\n"
"}\n\n"); "}\n\n");
g_string_append_printf (result, g_string_append_printf (result,
"void\n" "__attribute__((destructor)) void\n"
"unregister_metadata (void) __attribute__((destructor))\n" "unregister_metadata (void)\n"
"{\n" "{\n"
"\tg_irepository_unregister (NULL, _G_METADATA);\n" "\tg_irepository_unregister (NULL, _G_METADATA);\n"
"}\n"); "}\n");