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:
@@ -23,10 +23,7 @@ closure_test_stdcall(ffi_cif* cif __UNUSED__, void* resp, void** args,
|
||||
|
||||
}
|
||||
|
||||
#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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user