summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-08-15 23:02:06 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-08-15 23:24:58 +0200
commit7b468bcc55d61b10fee9c872ecb3acb5413426e2 (patch)
tree3aa4bf936eb0fd0b8bcc12bfa0bcd9e5c56ee2a2 /codegen
parent9229a1beeb6f18805e6e25e5812170c7f9bae36b (diff)
downloadvala-7b468bcc55d61b10fee9c872ecb3acb5413426e2.tar.gz
codegen: Include glib-object.h for Enums with type_id
Diffstat (limited to 'codegen')
-rw-r--r--codegen/valaccodebasemodule.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 6f66e914e..a3f1b2687 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -819,6 +819,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
return true;
}
+ decl_space.add_include ("glib-object.h");
decl_space.add_type_declaration (new CCodeNewline ());
var macro = "(%s_get_type ())".printf (get_ccode_lower_case_name (en, null));