From b38cd7ff5f43dfca3d1c97728b042ff63efc515b Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Fri, 31 Mar 2006 12:44:53 +0100 Subject: [PATCH] widl: Output interface defined guard for rpc interfaces too. --- tools/widl/header.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/widl/header.c b/tools/widl/header.c index 3b290d6cff2..0347eade315 100644 --- a/tools/widl/header.c +++ b/tools/widl/header.c @@ -922,12 +922,14 @@ static void write_rpc_interface(const type_t *iface) fprintf(header, "/*****************************************************************************\n"); fprintf(header, " * %s interface (v%d.%d)\n", iface->name, LOWORD(ver), HIWORD(ver)); fprintf(header, " */\n"); + fprintf(header,"#ifndef __%s_INTERFACE_DEFINED__\n", iface->name); + fprintf(header,"#define __%s_INTERFACE_DEFINED__\n\n", iface->name); write_iface_guid(iface); if (var) fprintf(header, "extern handle_t %s;\n", var); fprintf(header, "extern RPC_IF_HANDLE %s_v%d_%d_c_ifspec;\n", iface->name, LOWORD(ver), HIWORD(ver)); fprintf(header, "extern RPC_IF_HANDLE %s_v%d_%d_s_ifspec;\n", iface->name, LOWORD(ver), HIWORD(ver)); write_function_proto(iface); - fprintf(header, "\n"); + fprintf(header,"\n#endif /* __%s_INTERFACE_DEFINED__ */\n\n", iface->name); /* FIXME: server/client code */ }