[vala] Include string.h when using strcmp
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Include string.h when using strcmp
- Date: Thu, 4 Feb 2010 19:01:04 +0000 (UTC)
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]