[Telepathy-commits] [telepathy-glib/master] glib-ginterface-gen: Don't emit empty arrays of method descriptions
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Jan 20 04:46:20 PST 2009
This is a non-portable gcc extension, which causes trouble for the
Spicebird people on Windows.
---
tools/glib-ginterface-gen.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tools/glib-ginterface-gen.py b/tools/glib-ginterface-gen.py
index 8e84a61..3e4195e 100644
--- a/tools/glib-ginterface-gen.py
+++ b/tools/glib-ginterface-gen.py
@@ -279,6 +279,10 @@ class Generator(object):
for method, offset in zip(methods, offsets):
self.do_method_glue(method, offset)
+ if len(methods) == 0:
+ # empty arrays are a gcc extension, so put in a dummy member
+ self.b(" { NULL, NULL, 0 }")
+
self.b('};')
self.b('')
--
1.5.6.5
More information about the Telepathy-commits
mailing list