Commit ed3d936a authored by Jordan Yelloz's avatar Jordan Yelloz Committed by Rico Tzschichholz

codegen: Include gio/gio.h for "use_string_marshalling"

Using [DBus (use_string_marshalling = true)] requires G_DBUS_ERROR symbols
and therefore needs gio/gio.h while e.g. defining enum in dedicated file.

https://bugzilla.gnome.org/show_bug.cgi?id=768588
parent 588c00e7
......@@ -149,6 +149,9 @@ public class Vala.GVariantModule : GAsyncModule {
// strcmp
cfile.add_include ("string.h");
// for G_DBUS_ERROR
cfile.add_include ("gio/gio.h");
cfile.add_function (generate_enum_from_string_function (en));
cfile.add_function (generate_enum_to_string_function (en));
}
......
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