]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Ignore .h files passed to compiler
authorTristan Brindle <t.c.brindle@gmail.com>
Mon, 31 Oct 2011 14:39:48 +0000 (22:39 +0800)
committerJürg Billeter <j@bitron.ch>
Mon, 6 Aug 2012 18:15:51 +0000 (20:15 +0200)
Fixes bug 663088.

vala/valacodecontext.vala

index e716b3300ed4ed7f1927f5bc23cc97e5b5a4e068..6825294a7c5f8d98a0e84c2fc4428bf263452cfd 100644 (file)
@@ -422,6 +422,8 @@ public class Vala.CodeContext {
                        add_source_file (source_file);
                } else if (filename.has_suffix (".c")) {
                        add_c_source_file (rpath);
+               } else if (filename.has_suffix (".h")) {
+                       /* Ignore */
                } else {
                        Report.error (null, "%s is not a supported source file type. Only .vala, .vapi, .gs, and .c files are supported.".printf (filename));
                        return false;