testsuite: Introduce a __THISCALL__ compiler-specific macro

This commit is contained in:
Josh Triplett
2014-03-16 15:26:26 -07:00
parent bad8948346
commit dfdb02cc86
2 changed files with 3 additions and 4 deletions

View File

@@ -23,10 +23,7 @@ closure_test_thiscall(ffi_cif* cif __UNUSED__, void* resp, void** args,
}
#ifndef _MSC_VER
#define __thiscall __attribute__((thiscall))
#endif
typedef int (__thiscall *closure_test_type0)(int, int, int, int);
typedef int (__THISCALL__ *closure_test_type0)(int, int, int, int);
int main (void)
{

View File

@@ -22,10 +22,12 @@
#if defined(__GNUC__)
#define __UNUSED__ __attribute__((__unused__))
#define __STDCALL__ __attribute__((stdcall))
#define __THISCALL__ __attribute__((thiscall))
#define __FASTCALL__ __attribute__((fastcall))
#else
#define __UNUSED__
#define __STDCALL__ __stdcall
#define __THISCALL__ __thiscall
#define __FASTCALL__ __fastcall
#endif