diff --git a/xpcom/tools/xpidl/xpidl_header.c b/xpcom/tools/xpidl/xpidl_header.c index 903413d6d3bd..17b1c70b3c3d 100644 --- a/xpcom/tools/xpidl/xpidl_header.c +++ b/xpcom/tools/xpidl/xpidl_header.c @@ -66,11 +66,12 @@ static gboolean pass_1(TreeState *state) { if (state->tree) { + char *define = g_basename(state->basename); fprintf(state->file, "/*\n * DO NOT EDIT. THIS FILE IS GENERATED FROM" " %s.idl\n */\n", state->basename); fprintf(state->file, "\n#ifndef __gen_%s_h__\n" "#define __gen_%s_h__\n\n", - state->basename, state->basename); + define, define); if (g_hash_table_size(state->includes)) { g_hash_table_foreach(state->includes, write_header, state); fputc('\n', state->file); diff --git a/xpcom/typelib/xpidl/xpidl_header.c b/xpcom/typelib/xpidl/xpidl_header.c index 903413d6d3bd..17b1c70b3c3d 100644 --- a/xpcom/typelib/xpidl/xpidl_header.c +++ b/xpcom/typelib/xpidl/xpidl_header.c @@ -66,11 +66,12 @@ static gboolean pass_1(TreeState *state) { if (state->tree) { + char *define = g_basename(state->basename); fprintf(state->file, "/*\n * DO NOT EDIT. THIS FILE IS GENERATED FROM" " %s.idl\n */\n", state->basename); fprintf(state->file, "\n#ifndef __gen_%s_h__\n" "#define __gen_%s_h__\n\n", - state->basename, state->basename); + define, define); if (g_hash_table_size(state->includes)) { g_hash_table_foreach(state->includes, write_header, state); fputc('\n', state->file);