]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Include gio/gio.h for "use_string_marshalling"
authorJordan Yelloz <jordan@yelloz.me>
Fri, 8 Jul 2016 18:41:35 +0000 (11:41 -0700)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 8 Oct 2016 20:40:42 +0000 (22:40 +0200)
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

codegen/valagvariantmodule.vala

index 409940eff3bbda6005fbbc7da73253aecba64ebb..b2d9861db11d4ba522c0a95e8e1fea5502caf513 100644 (file)
@@ -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));
                }