[vala/staging: 5/7] codegen: Don't explicitly add glib headers, using symbols will do that



commit 32732695dc3be6bd0b9164fbb914aa6e6629612f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Nov 19 13:13:24 2018 +0100

    codegen: Don't explicitly add glib headers, using symbols will do that
    
    See https://gitlab.gnome.org/GNOME/vala/issues/623

 codegen/valaccodebasemodule.vala | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index b95b3f372..32d38cc22 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -759,13 +759,6 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                wrappers = new HashSet<string> (str_hash, str_equal);
                generated_external_symbols = new HashSet<Symbol> ();
 
-               if (context.profile == Profile.GOBJECT) {
-                       header_file.add_include ("glib.h");
-                       internal_header_file.add_include ("glib.h");
-                       cfile.add_include ("glib.h");
-                       cfile.add_include ("glib-object.h");
-               }
-
                source_file.accept_children (this);
 
                if (context.report.get_errors () > 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]