Commit 6ddab2e1 authored by Rico Tzschichholz's avatar Rico Tzschichholz

codegen: Interfaces require including "glib-object.h"

parent bcd7a53c
......@@ -2084,6 +2084,8 @@ public class Vala.GTypeModule : GErrorModule {
}
}
decl_space.add_include ("glib-object.h");
var type_struct = new CCodeStruct ("_%s".printf (get_ccode_type_name (iface)));
decl_space.add_type_declaration (new CCodeNewline ());
......
......@@ -251,6 +251,7 @@ TESTS = \
delegates/bug772204.test \
delegates/bug792077.vala \
objects/chainup.vala \
objects/class_only.vala \
objects/classes.vala \
objects/compact-class.vala \
objects/compact-class-destructor.vala \
......@@ -263,6 +264,7 @@ TESTS = \
objects/initially-unowned.vala \
objects/fields.vala \
objects/gsource.vala \
objects/interface_only.vala \
objects/interfaces.vala \
objects/methods.vala \
objects/paramspec.vala \
......
class Foo {
}
void main () {
}
interface Foo {
}
void main () {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment