Several tests want to use stdcall, which differs in syntax by compiler,
so introduce a macro for it in ffitest.h.
}
-#ifndef _MSC_VER
-#define __stdcall __attribute__((stdcall))
-#endif
-typedef int (__stdcall *closure_test_type0)(int, int, int, int);
+typedef int (__STDCALL__ *closure_test_type0)(int, int, int, int);
int main (void)
{
#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