]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Don't explicitly add glib headers, using symbols will do that
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 19 Nov 2018 12:13:24 +0000 (13:13 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 21 Nov 2018 19:22:28 +0000 (20:22 +0100)
See https://gitlab.gnome.org/GNOME/vala/issues/623

codegen/valaccodebasemodule.vala

index 1f43dcb130112875c8a4f43c0af99384c19a0ecc..d4e53915414eafa02df9460317db8a68befa1937 100644 (file)
@@ -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) {