widl: Generate class forward declaration for coclasses.

oldstable
Jacek Caban 2011-07-06 14:08:16 +02:00 committed by Alexandre Julliard
parent 17eccaffbf
commit 9afec542e0
1 changed files with 3 additions and 0 deletions

View File

@ -1152,6 +1152,9 @@ static void write_coclass(FILE *header, type_t *cocl)
fprintf(header, " * %s coclass\n", cocl->name);
fprintf(header, " */\n\n");
write_coclass_guid(header, cocl);
fprintf(header, "\n#ifdef __cplusplus\n");
fprintf(header, "class %s;\n", cocl->name);
fprintf(header, "#endif\n");
fprintf(header, "\n");
}