From 455b486e6b92d5c9a46029304f054c260c60b2ec Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Wed, 13 Jun 2012 20:41:45 +0000 Subject: [PATCH] Add a convenience macro for the fastcall attribute. MFC after: 2 weeks --- sys/sys/cdefs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 80f7b8e2c683..f86a75506239 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -293,6 +293,12 @@ #define __nonnull(x) #endif +#if __GNUC_PREREQ__(3, 4) +#define __fastcall __attribute__((__fastcall__)) +#else +#define __fastcall +#endif + #if __GNUC_PREREQ__(4, 1) #define __returns_twice __attribute__((__returns_twice__)) #else