]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GAsync: Include gio/gio.h when needed
authorJürg Billeter <j@bitron.ch>
Sun, 31 May 2009 12:08:35 +0000 (14:08 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 31 May 2009 12:08:35 +0000 (14:08 +0200)
codegen/valaccodebasemodule.vala
codegen/valagasyncmodule.vala

index 4a41c666db4e8458e9f2971c1bc62393eb8dbe6b..06751cd3c15a254324ebc12048c2a9f05ec9b431 100644 (file)
@@ -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;
index af2c96f18f38d83fd590aa6122fab54e36b6f760..82a92bc03ef4841ddb902cf36424629ee6184aad 100644 (file)
@@ -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;