Author: akhaldi Date: Sun Jun 23 12:47:33 2013 New Revision: 59312
URL: http://svn.reactos.org/svn/reactos?rev=59312&view=rev Log: [WIDL] * Do not generate empty Vtbl structure for empty interfaces. Brought to you by Thomas Faber. * Patch is pending upstream.
Modified: trunk/reactos/tools/widl/header.c
Modified: trunk/reactos/tools/widl/header.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/header.c?rev=593... ============================================================================== --- trunk/reactos/tools/widl/header.c [iso-8859-1] (original) +++ trunk/reactos/tools/widl/header.c [iso-8859-1] Sun Jun 23 12:47:33 2013 @@ -975,6 +975,15 @@
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)) {