widl: Fix declaration order in generated headers.

This commit is contained in:
Alexandre Julliard 2010-09-06 17:06:59 +02:00
parent 1042aa0145
commit d3c4106d6f
1 changed files with 4 additions and 6 deletions

View File

@ -1309,16 +1309,14 @@ void write_header(const statement_list_t *stmts)
fprintf(header, "#ifndef __WIDL_%s\n", header_token);
fprintf(header, "#define __WIDL_%s\n\n", header_token);
start_cplusplus_guard(header);
fprintf(header, "/* Forward declarations */\n\n");
write_forward_decls(header, stmts);
fprintf(header, "/* Headers for imported files */\n\n");
write_imports(header, stmts);
fprintf(header, "\n");
/* FIXME: should be before imported file includes */
fprintf(header, "/* Forward declarations */\n\n");
write_forward_decls(header, stmts);
fprintf(header, "\n");
start_cplusplus_guard(header);
write_header_stmts(header, stmts, NULL, FALSE);