widl: Issue correct C++ headers.

This commit is contained in:
Vincent Béron 2005-12-09 11:22:04 +01:00 committed by Alexandre Julliard
parent 2b4377f5eb
commit fe987b3035
1 changed files with 3 additions and 3 deletions

View File

@ -806,7 +806,7 @@ static void write_com_interface(type_t *iface)
fprintf(header, "#if defined(__cplusplus) && !defined(CINTERFACE)\n");
if (iface->ref)
{
fprintf(header, "%s : public %s\n", iface->name, iface->ref->name);
fprintf(header, "interface %s : public %s\n", iface->name, iface->ref->name);
fprintf(header, "{\n");
indentation++;
write_cpp_method_def(iface);
@ -815,7 +815,7 @@ static void write_com_interface(type_t *iface)
}
else
{
fprintf(header, "%s\n", iface->name);
fprintf(header, "interface %s\n", iface->name);
fprintf(header, "{\n");
fprintf(header, " BEGIN_INTERFACE\n");
fprintf(header, "\n");
@ -888,7 +888,7 @@ void write_dispinterface(type_t *iface)
write_forward(iface);
/* C++ interface */
fprintf(header, "#if defined(__cplusplus) && !defined(CINTERFACE)\n");
fprintf(header, "%s : public %s\n", iface->name, iface->ref->name);
fprintf(header, "interface %s : public %s\n", iface->name, iface->ref->name);
fprintf(header, "{\n");
fprintf(header, "};\n");
fprintf(header, "#else\n");