]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
don't add default include directives for VAPI files, fixes bug 436761
authorJürg Billeter <j@bitron.ch>
Wed, 9 May 2007 09:41:36 +0000 (09:41 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Wed, 9 May 2007 09:41:36 +0000 (09:41 +0000)
2007-05-09  Jürg Billeter  <j@bitron.ch>

* vala/valanamespace.vala: don't add default include directives for
  VAPI files, fixes bug 436761

svn path=/trunk/; revision=310

ChangeLog
vala/valanamespace.vala

index fd469a417a64d1fa87ab1a42557da9cf36fea886..c1d8c93d8859df172c73324aafdd173aae56135e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-09  Jürg Billeter  <j@bitron.ch>
+
+       * vala/valanamespace.vala: don't add default include directives for
+         VAPI files, fixes bug 436761
+
 2007-05-07  Jürg Billeter  <j@bitron.ch>
 
        * vapi/glib-2.0.vala: correct strstr cname, patch by Zsombor
index 3b63cba4211b29e6e3721757c0193d5e62479874..a8843c7adc4482d89d612be356e85ddbd5c978fc 100644 (file)
@@ -316,7 +316,10 @@ public class Vala.Namespace : CodeNode {
         */
        public ref List<weak string> get_cheader_filenames () {
                if (cheader_filenames == null) {
-                       cheader_filenames.append (source_reference.file.get_cinclude_filename ());
+                       if (!source_reference.file.pkg) {
+                               // don't add default include directives for VAPI files
+                               cheader_filenames.append (source_reference.file.get_cinclude_filename ());
+                       }
                }
                return cheader_filenames.copy ();
        }