widl: Use 'class' for coclass typedefs in C++.

This commit is contained in:
Thomas Faber 2012-10-14 18:35:14 +02:00 committed by Alexandre Julliard
parent 311a1e0148
commit 52607ba66b
1 changed files with 4 additions and 0 deletions

View File

@ -1301,7 +1301,11 @@ static void write_coclass_forward(FILE *header, type_t *cocl)
{
fprintf(header, "#ifndef __%s_FWD_DEFINED__\n", cocl->name);
fprintf(header, "#define __%s_FWD_DEFINED__\n", cocl->name);
fprintf(header, "#ifdef __cplusplus\n");
fprintf(header, "typedef class %s %s;\n", cocl->name, cocl->name);
fprintf(header, "#else\n");
fprintf(header, "typedef struct %s %s;\n", cocl->name, cocl->name);
fprintf(header, "#endif /* defined __cplusplus */\n");
fprintf(header, "#endif /* defined __%s_FWD_DEFINED__ */\n\n", cocl->name );
}