Commit 899d284a authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

don't add default include directives for VAPI files, fixes bug 436761

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
parent fde5cc92
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
......
......@@ -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 ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment