Taken from upstream. From 4c2369083c5941ffada100e4a7e4702e681585e3 Mon Sep 17 00:00:00 2001 From: taozuhong Date: Tue, 11 Jan 2022 15:03:28 +0800 Subject: [PATCH] fixed compile error --- libgda/Gda-6.0-custom.vala | 3 +++ libgda/sql-parser/lemon.c | 39 +++++++++++++++++++------------------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/libgda/Gda-6.0-custom.vala b/libgda/Gda-6.0-custom.vala index d046c5c24..4d1408648 100644 --- a/libgda/Gda-6.0-custom.vala +++ b/libgda/Gda-6.0-custom.vala @@ -92,7 +92,10 @@ namespace Gda { [CCode (cheader_filename = "libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gda_sql_statement_get_type ()")] [Compact] public class SqlStatement { + #if VALA_0_50 + #else public static Gda.SqlStatementContentsInfo get_contents_infos (Gda.SqlStatementType type); + #endif } } diff --git a/libgda/sql-parser/lemon.c b/libgda/sql-parser/lemon.c index a6fe75bb9..a3c7
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/genimage.scm
uintptr_t *)(((uintptr_t)A)+offset)) /* ** Inputs: @@ -1594,13 +1594,13 @@ int main(G_GNUC_UNUSED int argc, char **argv) ** The "next" pointers for elements in the lists a and b are ** changed. */ -static char *merge( - char *a, - char *b, - int (*cmp)(const char*,const char*), - int offset +static uintptr_t merge( + uintptr_t a, + uintptr_t b, + int (*cmp)(const uintptr_t, const uintptr_t), + uintptr_t offset ){ - char *ptr, *head; + uintptr_t ptr, *head; if( a==0 ){ head = b; @@ -1646,16 +1646,15 @@ static char *merge( ** The "next" pointers for elements in list are changed. */ #define LISTSIZE 30 -static char *msort( - char *list, - char **next, - int (*cmp)(const char*,const char*) +static uintptr_t msort( + uintptr_t list, + uintptr_t *next, + int (*cmp)(const uintptr_t, const uintptr_t) ){ - unsigned long offset; - char *ep; - char *set[LISTSIZE]; + uintptr_t ep; + uintptr_t set[LISTSIZE]; int i; - offset = (unsigned long)next - (unsigned long)list; + uintptr_t offset = (uintptr_t)next - (uintptr_t)list; for(i=0; i
AgeCommit message (Expand)Author