From 5047959cae431257438bc91a2839a4cca845d969 Mon Sep 17 00:00:00 2001 From: Dan Printzell Date: Sun, 2 May 2021 23:54:47 +0200 Subject: [PATCH] Fix compilation due to broken generated GdkPixbuf code Gir-to-d tries to handle the return value of 'gdk_pixdata_from_pixbuf' as if it is zero-terminated. Which causes it to try to use 'getArrayLength' on a void*, causing a compilation error. Temporary fix for now is to just not export that function. Additionally, Add missing include for 'FILE*' that GdkPixbufModule needs inside 'girepo/gdkpixbuf/c/types.d'. Signed-off-by: Dan Printzell --- contrib/girwrap/APILookupGdkPixbuf.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contrib/girwrap/APILookupGdkPixbuf.txt b/contrib/girwrap/APILookupGdkPixbuf.txt index a72ca042..d5edb363 100644 --- a/contrib/girwrap/APILookupGdkPixbuf.txt +++ b/contrib/girwrap/APILookupGdkPixbuf.txt @@ -224,3 +224,13 @@ struct: Pixdata noProperty: pixel_data move: pixbuf_from_pixdata Pixbuf from_pixdata + +# Gir-to-d tries to handle the return value of 'gdk_pixdata_from_pixbuf' as if it is zero-terminated. +# Which causes it to try to use 'getArrayLength' on a void*, causing a compilation error. +# Temporary fix for now is to just not export that function. +noCode: from_pixbuf + +# Add missing include for FILE* that GdkPixbufModule needs inside 'girepo/gdkpixbuf/c/types.d'. +addAliases: start +private import core.stdc.stdio : FILE; +addAliases: end