Commit 52607ba6 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

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

parent 311a1e01
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment