Skip to content

Commit af9f2e3

Browse files
JohanEngelendkorpel
authored andcommitted
Fix bugzilla 24546 for musl libc
1 parent 23f6757 commit af9f2e3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

druntime/src/importc.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,18 @@ typedef unsigned long long __uint64_t;
7070
* Obsolete detritus
7171
*/
7272
#define __cdecl
73+
#define __pascal
74+
75+
/*********************
76+
* DMC-specific extensions, https://digitalmars.com/ctg/pointers16.html
77+
*/
78+
#ifdef __DMC__
7379
#define __ss
7480
#define __cs
7581
#define __far
7682
#define __near
7783
#define __handle
78-
#define __pascal
84+
#endif
7985

8086
/****************************
8187
* __extension__ is a GNU C extension. It suppresses warnings

0 commit comments

Comments
 (0)