Commit 63d5462c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent 811c3591
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment