summaryrefslogtreecommitdiff
path: root/global.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-05-16 23:04:18 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-24 23:31:15 +0200
commitb5a567954ce3b4d236b7a2375a6a00f3a4a853e8 (patch)
tree56cc650be6577b1590dbeb0854a33dc557825ee5 /global.h
parentd9a36da6d785844139d291b37f80fbe087b2b59e (diff)
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: <ZGREMgn19Zptc/Pf@jupiter.tail36e24.ts.net>
Diffstat (limited to 'global.h')
-rw-r--r--global.h2
1 files changed, 2 insertions, 0 deletions
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