[vala] Ignore .h files passed to compiler
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Ignore .h files passed to compiler
- Date: Mon, 6 Aug 2012 18:17:17 +0000 (UTC)
commit fedb8ffab495d744ec2fae4dce173a89c8b9c24c
Author: Tristan Brindle <t c brindle gmail com>
Date: Mon Oct 31 22:39:48 2011 +0800
Ignore .h files passed to compiler
Fixes bug 663088.
vala/valacodecontext.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index e716b33..6825294 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]