Moved rpc.h inclusion in widl-generated file so that tests compile.
diff --git a/include/wtypes.h b/include/wtypes.h index 96e4318..067de71 100644 --- a/include/wtypes.h +++ b/include/wtypes.h
@@ -1,10 +1,11 @@ -/*** Autogenerated by WIDL 0.1 from ../../include/wtypes.idl - Do not edit ***/ +/*** Autogenerated by WIDL 0.1 from wtypes.idl - Do not edit ***/ +#include "rpc.h" +#include "rpcndr.h" + #ifndef __WIDL_WTYPES_H #define __WIDL_WTYPES_H #include "basetsd.h" #include "guiddef.h" -#include "rpc.h" -#include "rpcndr.h" typedef CHAR OLECHAR16; typedef LPSTR LPOLESTR16; typedef LPCSTR LPCOLESTR16;
diff --git a/include/wtypes.idl b/include/wtypes.idl index 33c73c2..c701341 100644 --- a/include/wtypes.idl +++ b/include/wtypes.idl
@@ -30,8 +30,6 @@ cpp_quote("#include \"basetsd.h\"") cpp_quote("#include \"guiddef.h\"") -cpp_quote("#include \"rpc.h\"") -cpp_quote("#include \"rpcndr.h\"") /* from Wine's pre-WIDL wtypes.h */ /* FIXME: does not belong here */
diff --git a/tools/widl/widl.c b/tools/widl/widl.c index 5fef182..0460761 100644 --- a/tools/widl/widl.c +++ b/tools/widl/widl.c
@@ -209,6 +209,8 @@ header = fopen(header_name, "w"); fprintf(header, "/*** Autogenerated by WIDL %s from %s - Do not edit ***/\n", WIDL_FULLVERSION, input_name); + fprintf(header, "#include \"rpc.h\"\n" ); + fprintf(header, "#include \"rpcndr.h\"\n\n" ); fprintf(header, "#ifndef __WIDL_%s\n", header_token); fprintf(header, "#define __WIDL_%s\n", header_token);