widl: Define __REQUIRED_RPCNDR_H_VERSION__ in generated headers.

This commit is contained in:
Jacek Caban 2011-09-22 15:01:50 +02:00 committed by Alexandre Julliard
parent 4156460d49
commit c7602d51b3
1 changed files with 5 additions and 0 deletions

View File

@ -1358,6 +1358,11 @@ void write_header(const statement_list_t *stmts)
return;
}
fprintf(header, "/*** Autogenerated by WIDL %s from %s - Do not edit ***/\n\n", PACKAGE_VERSION, input_name);
fprintf(header, "#ifndef __REQUIRED_RPCNDR_H_VERSION__\n");
fprintf(header, "#define __REQUIRED_RPCNDR_H_VERSION__ 475\n");
fprintf(header, "#endif\n\n");
fprintf(header, "#include <rpc.h>\n" );
fprintf(header, "#include <rpcndr.h>\n\n" );