]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Move private type-struct to type-definition section 8f51ff7b1cc560230f6e121b6ceb6620cab21019
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 24 Jul 2019 06:57:03 +0000 (08:57 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 24 Jul 2019 07:17:02 +0000 (09:17 +0200)
codegen/valagtypemodule.vala

index 38e9ff3ada246239f35f5a44eb05d057130852b8..d3351aae1f9f71d229122ab9497f8070b307d224 100644 (file)
@@ -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));