From: Jordan Yelloz Date: Fri, 8 Jul 2016 18:41:35 +0000 (-0700) Subject: codegen: Include gio/gio.h for "use_string_marshalling" X-Git-Tag: 0.35.1~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed3d936aaf368705c9d2a504797a110b2f03abec;p=thirdparty%2Fvala.git 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 --- diff --git a/codegen/valagvariantmodule.vala b/codegen/valagvariantmodule.vala index 409940eff..b2d9861db 100644 --- a/codegen/valagvariantmodule.vala +++ b/codegen/valagvariantmodule.vala @@ -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)); }