void-packages/srcpkgs/valabind/patches/fix-vala-0.36.patch

37 lines
1.1 KiB
Diff

From f23ff9421c1875d18b1e558596557009b45faa19 Mon Sep 17 00:00:00 2001
From: pancake <pancake@nopcode.org>
Date: Thu, 9 Feb 2017 10:21:16 +0100
Subject: [PATCH] Fix build for Vala-git (future 0.36)
---
cxxwriter.vala | 2 +-
dlangwriter.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git cxxwriter.vala cxxwriter.vala
index cca65fe..890e085 100644
--- cxxwriter.vala
+++ cxxwriter.vala
@@ -157,7 +157,7 @@ public class CxxWriter : ValabindWriter {
}
public void walk_field (Field f) {
- if (f.get_ctype () == null) {
+ if (f.get_attribute_string ("CCode", "type") == null) {
//warning (
// "Cannot resolve type for field '%s'".printf (f.get_cname ()));
} else {
diff --git dlangwriter.vala dlangwriter.vala
index 8d42676..898d3ca 100644
--- dlangwriter.vala
+++ dlangwriter.vala
@@ -167,7 +167,7 @@ public class DlangWriter : ValabindWriter {
}
public void walk_field (Field f) {
- if (f.get_ctype () == null) {
+ if (f.get_attribute_string ("CCode", "type") == null) {
//warning (
// "Cannot resolve type for field '%s'".printf (f.get_cname ()));
} else {