From cc66e60109fb99b0983b908ebd70f1a7f9499d76 Mon Sep 17 00:00:00 2001 From: Johan Engelen Date: Sun, 19 May 2024 12:09:09 +0200 Subject: [PATCH] Fix bugzilla 24546 for musl libc (#16507) --- druntime/src/importc.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/druntime/src/importc.h b/druntime/src/importc.h index 1389171519..72d62d8e44 100644 --- a/druntime/src/importc.h +++ b/druntime/src/importc.h @@ -70,12 +70,18 @@ typedef unsigned long long __uint64_t; * Obsolete detritus */ #define __cdecl +#define __pascal + +/********************* + * DMC-specific extensions, https://digitalmars.com/ctg/pointers16.html + */ +#ifdef __DMC__ #define __ss #define __cs #define __far #define __near #define __handle -#define __pascal +#endif /**************************** * __extension__ is a GNU C extension. It suppresses warnings