mirror of
https://github.com/reactos/wine.git
synced 2025-01-22 03:49:02 +00:00
widl: Use 'class' for coclass typedefs in C++.
This commit is contained in:
parent
311a1e0148
commit
52607ba66b
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user