From: Jürg Billeter Date: Thu, 4 Feb 2010 18:58:05 +0000 (+0100) Subject: Include string.h when using strcmp X-Git-Tag: 0.7.10~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7314db8131263428d67ecac5d7adf64dfb6c3bd;p=thirdparty%2Fvala.git Include string.h when using strcmp --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 7b29aed08..ae358fc9f 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 *"));