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



commit 91f4f206257c719a70ee0e69bec49b8340d51fdb
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 e197b1c60..8afb53fa7 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -761,13 +761,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]