Commit 4b1dfa60 authored by Richard Pospesel's avatar Richard Pospesel Committed by Alexandre Julliard

widl: Add the typedef to the type library if the aliasee is an anonymous UDT.

parent 96e11d51
......@@ -1895,7 +1895,11 @@ static type_t *reg_typedefs(decl_spec_t *decl_spec, declarator_list_t *decls, at
type_get_type_detect_alias(type) == TYPE_ENCAPSULATED_UNION)
{
if (!type->name)
{
type->name = gen_name();
if (!is_attr(attrs, ATTR_PUBLIC))
attrs = append_attr(attrs, make_attr(ATTR_PUBLIC));
}
/* replace existing attributes when generating a typelib */
if (do_typelib)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment