[vala] D-Bus: Add missing string.h include



commit bd7c18a5fc072d6f8c693ad0d3d4621cd0f3f220
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jun 16 20:52:39 2010 +0200

    D-Bus: Add missing string.h include

 codegen/valadbusclientmodule.vala |    3 +++
 codegen/valadbusservermodule.vala |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valadbusclientmodule.vala b/codegen/valadbusclientmodule.vala
index 7616d1e..6993be0 100644
--- a/codegen/valadbusclientmodule.vala
+++ b/codegen/valadbusclientmodule.vala
@@ -1048,6 +1048,9 @@ public class Vala.DBusClientModule : DBusModule {
 			return;
 		}
 
+		// strcmp
+		source_declarations.add_include ("string.h");
+
 		// create proxy class
 		string cname = iface.get_cname () + "DBusProxy";
 		string lower_cname = iface.get_lower_case_cprefix () + "dbus_proxy";
diff --git a/codegen/valadbusservermodule.vala b/codegen/valadbusservermodule.vala
index 9f565b7..0152985 100644
--- a/codegen/valadbusservermodule.vala
+++ b/codegen/valadbusservermodule.vala
@@ -564,6 +564,9 @@ public class Vala.DBusServerModule : DBusClientModule {
 	}
 
 	void generate_register_function (ObjectType object_type) {
+		// strcmp
+		source_declarations.add_include ("string.h");
+
 		var sym = object_type.type_symbol;
 
 		var cfunc = new CCodeFunction (sym.get_lower_case_cprefix () + "dbus_register_object", "void");



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