Re: [Vala] Oddity when using generics with boxed values



On Mon, Apr 25, 2011 at 11:02:42AM +0100, David Given wrote:
Vala's completely happy with this, but when I try to compile it I get
the C error:

  error: ‘TYPE_ATOM’ undeclared (first use in this function)


Does this patch work for you?

diff --git a/vapi/x11.vapi b/vapi/x11.vapi
index 32cc79c..8483d92 100644
--- a/vapi/x11.vapi
+++ b/vapi/x11.vapi
@@ -267,7 +267,7 @@ namespace X {
 
        [SimpleType]
        [IntegerType (rank = 9)]
-       [CCode (cname = "Atom")]
+       [CCode (cname = "Atom", has_type_id = false)]
        public struct Atom {
        }

-- 
http://www.debian.org - The Universal Operating System

Attachment: signature.asc
Description: Digital signature



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