testsuite: Introduce a __STDCALL__ compiler-specific macro

Several tests want to use stdcall, which differs in syntax by compiler,
so introduce a macro for it in ffitest.h.
This commit is contained in:
Josh Triplett
2014-03-16 15:16:18 -07:00
parent 98a793fa36
commit bad8948346
2 changed files with 3 additions and 4 deletions

View File

@@ -21,9 +21,11 @@
#undef __UNUSED__
#if defined(__GNUC__)
#define __UNUSED__ __attribute__((__unused__))
#define __STDCALL__ __attribute__((stdcall))
#define __FASTCALL__ __attribute__((fastcall))
#else
#define __UNUSED__
#define __STDCALL__ __stdcall
#define __FASTCALL__ __fastcall
#endif