[vala] D-Bus: Add missing string.h includes
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Add missing string.h includes
- Date: Wed, 23 Mar 2011 21:33:58 +0000 (UTC)
commit dd6503bf96fadd3a4052e5a5b66df69544d0c889
Author: Jürg Billeter <j bitron ch>
Date: Wed Mar 23 22:21:50 2011 +0100
D-Bus: Add missing string.h includes
codegen/valagdbusclientmodule.vala | 2 ++
codegen/valagdbusservermodule.vala | 6 ++++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagdbusclientmodule.vala b/codegen/valagdbusclientmodule.vala
index adc2f64..6df1a2d 100644
--- a/codegen/valagdbusclientmodule.vala
+++ b/codegen/valagdbusclientmodule.vala
@@ -436,6 +436,8 @@ public class Vala.GDBusClientModule : GDBusModule {
continue;
}
+ cfile.add_include ("string.h");
+
var ccheck = new CCodeFunctionCall (new CCodeIdentifier ("strcmp"));
ccheck.add_argument (new CCodeIdentifier ("signal_name"));
ccheck.add_argument (new CCodeConstant ("\"%s\"".printf (get_dbus_name_for_member (sig))));
diff --git a/codegen/valagdbusservermodule.vala b/codegen/valagdbusservermodule.vala
index 8899e21..a0642ff 100644
--- a/codegen/valagdbusservermodule.vala
+++ b/codegen/valagdbusservermodule.vala
@@ -659,6 +659,8 @@ public class Vala.GDBusServerModule : GDBusClientModule {
continue;
}
+ cfile.add_include ("string.h");
+
var ccheck = new CCodeFunctionCall (new CCodeIdentifier ("strcmp"));
ccheck.add_argument (new CCodeIdentifier ("method_name"));
ccheck.add_argument (new CCodeConstant ("\"%s\"".printf (get_dbus_name_for_member (m))));
@@ -734,6 +736,8 @@ public class Vala.GDBusServerModule : GDBusClientModule {
continue;
}
+ cfile.add_include ("string.h");
+
var ccheck = new CCodeFunctionCall (new CCodeIdentifier ("strcmp"));
ccheck.add_argument (new CCodeIdentifier ("property_name"));
ccheck.add_argument (new CCodeConstant ("\"%s\"".printf (get_dbus_name_for_member (prop))));
@@ -800,6 +804,8 @@ public class Vala.GDBusServerModule : GDBusClientModule {
continue;
}
+ cfile.add_include ("string.h");
+
var ccheck = new CCodeFunctionCall (new CCodeIdentifier ("strcmp"));
ccheck.add_argument (new CCodeIdentifier ("property_name"));
ccheck.add_argument (new CCodeConstant ("\"%s\"".printf (get_dbus_name_for_member (prop))));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]