From: Rico Tzschichholz Date: Wed, 24 Jul 2019 06:57:03 +0000 (+0200) Subject: codegen: Move private type-struct to type-definition section X-Git-Tag: 0.45.90~7 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fkeep-around%2F8f51ff7b1cc560230f6e121b6ceb6620cab21019;p=thirdparty%2Fvala.git codegen: Move private type-struct to type-definition section --- diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala index 38e9ff3ad..d3351aae1 100644 --- a/codegen/valagtypemodule.vala +++ b/codegen/valagtypemodule.vala @@ -601,7 +601,7 @@ public class Vala.GTypeModule : GErrorModule { } if (cl.has_class_private_fields || has_class_locks) { - decl_space.add_type_member_declaration (type_priv_struct); + decl_space.add_type_definition (type_priv_struct); string macro = "(G_TYPE_CLASS_GET_PRIVATE (klass, %s, %sClassPrivate))".printf (get_ccode_type_id (cl), get_ccode_name (cl)); decl_space.add_type_member_declaration (new CCodeMacroReplacement ("%s(klass)".printf (get_ccode_class_get_private_function (cl)), macro));