" * Public methods\n"
" */\n");
- if (!overrode_get_type) {
+ if (!overrode_get_type && !no_gnu) {
/*
* For ordinary "static" types it should be safe to mark the
* get_type implementation as const, since the get_type
g_free (str);
out_printf (outh, "%s_get_type()\n", funcprefix);
- out_printf (outh, "GType %s_get_type (void) G_GNUC_CONST;\n\n", funcprefix);
+ out_printf (outh, "GType %s_get_type (void)%s;\n\n",
+ funcprefix, no_gnu ? "": " G_GNUC_CONST");
out_printf (out,
"GType\n%s_get_type (void)\n"
g_free (str);
out_printf (outh, "%s_get_type()\n", funcprefix);
- out_printf (outh, "GType %s_get_type (void) G_GNUC_CONST;\n\n", funcprefix);
+ out_printf (outh, "GType %s_get_type (void)%s;\n\n",
+ funcprefix, no_gnu ? "" : " G_GNUC_CONST");
out_printf (out,
"GType\n%s_get_type (void)\n"
g_free (str);
out_printf (outh, "%s_get_type ()\n", funcprefix);
- out_printf (outh, "GType %s_get_type (void) G_GNUC_CONST;\n\n", funcprefix);
+ out_printf (outh, "GType %s_get_type (void)%s;\n\n",
+ funcprefix, no_gnu ? "" : " G_GNUC_CONST");
out_printf (out,
"GType\n%s_get_type (void)\n"