From: Jürg Billeter Date: Sun, 31 May 2009 12:08:35 +0000 (+0200) Subject: GAsync: Include gio/gio.h when needed X-Git-Tag: 0.7.4~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86739dacff49e2dbdc10cce70172cdc80f8b9581;p=thirdparty%2Fvala.git GAsync: Include gio/gio.h when needed --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 4a41c666d..06751cd3c 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -121,7 +121,6 @@ internal class Vala.CCodeBaseModule : CCodeModule { public string module_init_param_name; public bool gvaluecollector_h_needed; - public bool gio_h_needed; public bool requires_array_free; public bool requires_array_move; public bool requires_array_length; @@ -429,7 +428,6 @@ internal class Vala.CCodeBaseModule : CCodeModule { variable_name_map.clear (); gvaluecollector_h_needed = false; - gio_h_needed = false; dbus_glib_h_needed = false; dbus_glib_h_needed_in_header = false; requires_array_free = false; diff --git a/codegen/valagasyncmodule.vala b/codegen/valagasyncmodule.vala index af2c96f18..82a92bc03 100644 --- a/codegen/valagasyncmodule.vala +++ b/codegen/valagasyncmodule.vala @@ -189,7 +189,7 @@ internal class Vala.GAsyncModule : GSignalModule { public override void visit_method (Method m) { if (m.coroutine) { - gio_h_needed = true; + source_declarations.add_include ("gio/gio.h"); // append the synchronous version m.coroutine = false;