diff options
author | Josh Triplett <josh@joshtriplett.org> | 2014-03-16 15:20:36 -0700 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2014-03-16 15:21:57 -0700 |
commit | 98a793fa36a4ab3ba24d059cb80a2891cdb940e1 (patch) | |
tree | b60dbabd90ab8dd4033753d2228dcb0808fbc7a5 /testsuite/libffi.call/ffitest.h | |
parent | d948d0a729c934b0224749338a3ba0a2c8f51c45 (diff) | |
download | libffi-98a793fa36a4ab3ba24d059cb80a2891cdb940e1.tar.gz |
testsuite: Common up the ifdef blocks for compiler-specific macros
Diffstat (limited to 'testsuite/libffi.call/ffitest.h')
-rw-r--r-- | testsuite/libffi.call/ffitest.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/testsuite/libffi.call/ffitest.h b/testsuite/libffi.call/ffitest.h index 136a7a6..7c0f8e4 100644 --- a/testsuite/libffi.call/ffitest.h +++ b/testsuite/libffi.call/ffitest.h @@ -17,20 +17,14 @@ #define CHECK(x) !(x) ? (abort(), 1) : 0 -/* Define __UNUSED__ that also other compilers than gcc can run the tests. */ +/* Define macros so that compilers other than gcc can run the tests. */ #undef __UNUSED__ #if defined(__GNUC__) #define __UNUSED__ __attribute__((__unused__)) +#define __FASTCALL__ __attribute__((fastcall)) #else #define __UNUSED__ -#endif - -/* Define __FASTCALL__ so that other compilers than gcc can run the tests. */ -#undef __FASTCALL__ -#if defined _MSC_VER #define __FASTCALL__ __fastcall -#else -#define __FASTCALL__ __attribute__((fastcall)) #endif /* Prefer MAP_ANON(YMOUS) to /dev/zero, since we don't need to keep a |