]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Include string.h when using strcmp
authorJürg Billeter <j@bitron.ch>
Thu, 4 Feb 2010 18:58:05 +0000 (19:58 +0100)
committerJürg Billeter <j@bitron.ch>
Thu, 4 Feb 2010 18:58:05 +0000 (19:58 +0100)
codegen/valaccodebasemodule.vala

index 7b29aed0885a836e6622197149534c5e533eacb1..ae358fc9f6a3116748ab09181687fd9027352543 100644 (file)
@@ -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 *"));