Skip to content

Commit

Permalink
Fix definition of __CDECL for -mfastcall
Browse files Browse the repository at this point in the history
  • Loading branch information
th-otto committed May 5, 2024
1 parent dbb54ca commit a50606d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,12 @@
* different, define it above
*/
#ifndef __CDECL
#ifdef __FASTCALL__
#define __CDECL __attribute__((__cdecl__))
#else
#define __CDECL
#endif
#endif

#ifndef __NORETURN
#define __NORETURN
Expand Down

0 comments on commit a50606d

Please sign in to comment.