widl: Output interface defined guard for rpc interfaces too.

This commit is contained in:
Robert Shearman 2006-03-31 12:44:53 +01:00 committed by Alexandre Julliard
parent 97d6f7c444
commit b38cd7ff5f
1 changed files with 3 additions and 1 deletions

View File

@ -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 */
}