From: Jürg Billeter Date: Tue, 26 May 2009 17:54:26 +0000 (+0200) Subject: glib-2.0: Fix time_t binding X-Git-Tag: 0.7.3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0a48017c7f91f83fff2ed3ff9debddc5b906191;p=thirdparty%2Fvala.git glib-2.0: Fix time_t binding Fixes bug 583177. --- diff --git a/vala/valastruct.vala b/vala/valastruct.vala index 573aa9705..684425a4c 100644 --- a/vala/valastruct.vala +++ b/vala/valastruct.vala @@ -592,6 +592,10 @@ public class Vala.Struct : TypeSymbol { return true; } } + if (get_attribute ("ByRef") != null) { + // used by time_t + return false; + } return (boolean_type || integer_type || floating_type || get_attribute ("SimpleType") != null); } diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 008c028b5..37c1d3ef7 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -665,6 +665,7 @@ public struct double { } [CCode (cheader_filename = "time.h")] +[ByRef] [IntegerType (rank = 8)] public struct time_t { [CCode (cname = "time")]