From b5a567954ce3b4d236b7a2375a6a00f3a4a853e8 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 16 May 2023 23:04:18 -0400 Subject: Update code generation to handle the new 64 bit ABI Mostly, we don't set the fields that do not exist and avoid type mismatching (like casting unsigned short to unsigned char for msgt_name). We also revamp type checking to compare mach_msg_type_t to uint64_t instead of just uint32_t as we now use the whole structure. Message-Id: --- global.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'global.h') diff --git a/global.h b/global.h index 1b7be96..15e9876 100644 --- a/global.h +++ b/global.h @@ -70,6 +70,8 @@ extern size_t port_size; extern size_t port_size_in_bits; extern size_t complex_alignof; +#define IS_64BIT_ABI (desired_complex_alignof == 8) + extern void more_global(void); #ifndef NULL -- cgit v1.2.3