[vala] Include string.h when using strcmp



commit e7314db8131263428d67ecac5d7adf64dfb6c3bd
Author: Jürg Billeter <j bitron ch>
Date:   Thu Feb 4 19:58:05 2010 +0100

    Include string.h when using strcmp

 codegen/valaccodebasemodule.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 7b29aed..ae358fc 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -494,6 +494,8 @@ internal class Vala.CCodeBaseModule : CCodeModule {
 	}
 
 	private void append_vala_strcmp0 () {
+		source_declarations.add_include ("string.h");;
+
 		var fun = new CCodeFunction ("_vala_strcmp0", "int");
 		fun.modifiers = CCodeModifiers.STATIC;
 		fun.add_parameter (new CCodeFormalParameter ("str1", "const char *"));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]