mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[WIDL]
- Forward-declare coclasses as 'class' in C++ to fix MSVC warnings. Already applied upstream. CORE-6587 #resolve svn path=/trunk/; revision=57566
This commit is contained in:
parent
679f8cec0e
commit
82492e6dc1
1 changed files with 4 additions and 0 deletions
|
@ -1300,7 +1300,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…
Reference in a new issue