Date: Wed, 13 Jun 2012 20:41:45 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r237025 - head/sys/sys Message-ID: <201206132041.q5DKfjRJ047573@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Wed Jun 13 20:41:45 2012 New Revision: 237025 URL: http://svn.freebsd.org/changeset/base/237025 Log: Add a convenience macro for the fastcall attribute. MFC after: 2 weeks Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h ============================================================================== --- head/sys/sys/cdefs.h Wed Jun 13 20:34:14 2012 (r237024) +++ head/sys/sys/cdefs.h Wed Jun 13 20:41:45 2012 (r237025) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206132041.q5DKfjRJ047573>