mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[WIDL]
* Do not generate empty Vtbl structure for empty interfaces. Brought to you by Thomas Faber. * Patch is pending upstream. svn path=/trunk/; revision=59312
This commit is contained in:
@@ -975,6 +975,15 @@ static void do_write_c_method_def(FILE *header, const type_t *iface, const char
|
||||
|
||||
if (type_iface_get_inherit(iface))
|
||||
do_write_c_method_def(header, type_iface_get_inherit(iface), name);
|
||||
else if (type_iface_get_stmts(iface) == NULL)
|
||||
{
|
||||
fprintf(header, "#ifndef __cplusplus\n");
|
||||
indent(header, 0);
|
||||
fprintf(header, "char dummy;\n");
|
||||
fprintf(header, "#endif\n");
|
||||
fprintf(header, "\n");
|
||||
return;
|
||||
}
|
||||
|
||||
STATEMENTS_FOR_EACH_FUNC(stmt, type_iface_get_stmts(iface))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user