widl: Insert standard windows.h and ole2.h includes to generated headers.

This commit is contained in:
Jacek Caban 2011-06-24 19:34:54 +02:00 committed by Alexandre Julliard
parent 811c3591c8
commit 63d5462ced

View File

@ -1338,6 +1338,11 @@ void write_header(const statement_list_t *stmts)
fprintf(header, "#include <rpc.h>\n" );
fprintf(header, "#include <rpcndr.h>\n\n" );
fprintf(header, "#if !defined(COM_NO_WINDOWS_H) && !defined(__WINESRC__)\n");
fprintf(header, "#include <windows.h>\n");
fprintf(header, "#include <ole2.h>\n");
fprintf(header, "#endif\n\n");
fprintf(header, "#ifndef __WIDL_%s\n", header_token);
fprintf(header, "#define __WIDL_%s\n\n", header_token);