Skip to content

Commit a50606d

Browse files
committed
Fix definition of __CDECL for -mfastcall
1 parent dbb54ca commit a50606d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/compiler.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@
9999
* different, define it above
100100
*/
101101
#ifndef __CDECL
102+
#ifdef __FASTCALL__
103+
#define __CDECL __attribute__((__cdecl__))
104+
#else
102105
#define __CDECL
103106
#endif
107+
#endif
104108

105109
#ifndef __NORETURN
106110
#define __NORETURN

0 commit comments

Comments
 (0)