From 8f51ff7b1cc560230f6e121b6ceb6620cab21019 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Wed, 24 Jul 2019 08:57:03 +0200 Subject: [PATCH] codegen: Move private type-struct to type-definition section --- codegen/valagtypemodule.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.47.2