From b1c3a89ade814ce681e33ac1ae22390ebf3d7d72 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 13 Nov 2002 04:18:38 +0000 Subject: [PATCH] Moved rpc.h inclusion in widl-generated file so that tests compile. --- include/wtypes.h | 7 ++++--- include/wtypes.idl | 2 -- tools/widl/widl.c | 2 ++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/wtypes.h b/include/wtypes.h index 96e4318d97a..067de7108bc 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 33c73c26a9b..c7013416d4d 100644 --- a/include/wtypes.idl +++ b/include/wtypes.idl @@ -30,8 +30,6 @@ interface IWinTypes 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 5fef1826922..0460761e131 100644 --- a/tools/widl/widl.c +++ b/tools/widl/widl.c @@ -209,6 +209,8 @@ int main(int argc,char *argv[]) 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);