From: Tristan Brindle Date: Mon, 31 Oct 2011 14:39:48 +0000 (+0800) Subject: Ignore .h files passed to compiler X-Git-Tag: 0.17.5~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fedb8ffab495d744ec2fae4dce173a89c8b9c24c;p=thirdparty%2Fvala.git Ignore .h files passed to compiler Fixes bug 663088. --- diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala index e716b3300..6825294a7 100644 --- a/vala/valacodecontext.vala +++ b/vala/valacodecontext.vala @@ -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;