]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Include glib-object.h when declaring fundamental classes
authorJürg Billeter <j@bitron.ch>
Sun, 12 Apr 2009 15:41:06 +0000 (17:41 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 12 Apr 2009 15:41:06 +0000 (17:41 +0200)
gobject/valagtypemodule.vala

index dd4421bfe5dff85508882e4197c3f58ed61424ed..8b6be984f2e4302e61854f4f019d7c92319f1723 100644 (file)
@@ -177,6 +177,7 @@ internal class Vala.GTypeModule : GErrorModule {
                if (cl.base_class != null) {
                        instance_struct.add_field (cl.base_class.get_cname (), "parent_instance");
                } else if (is_fundamental) {
+                       decl_space.add_include ("glib-object.h");
                        instance_struct.add_field ("GTypeInstance", "parent_instance");
                        instance_struct.add_field ("volatile int", "ref_count");
                }