From 77b16ae30d932b2dcd2e0c06f837ec544f7c1817 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 16 Dec 2024 10:51:41 +0100 Subject: [BOX32][WRAPPER] Prepare xcb_connection_t* as n on box32 --- wrapperhelper/src/parse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wrapperhelper/src/parse.c') diff --git a/wrapperhelper/src/parse.c b/wrapperhelper/src/parse.c index 83da8832..eba462bf 100644 --- a/wrapperhelper/src/parse.c +++ b/wrapperhelper/src/parse.c @@ -3357,7 +3357,11 @@ static int finalize_file(machine_t *target, file_t *file) { // #pragma type_letters S FILE* SET_WEAK_PTR_TO(FILE, S) // #pragma type_letters b xcb_connection_t* - SET_WEAK_PTR_TO(xcb_connection_t, S) + if (target->size_long == 4) { + SET_WEAK_PTR_TO(xcb_connection_t, n) + } else { + SET_WEAK_PTR_TO(xcb_connection_t, b) + } if (target->size_long == 4) { // Only on x86, not on x86_64 it = kh_get(type_map, file->type_map, "locale_t"); -- cgit 1.4.1