11 #define STDCALL __stdcall
16 #if defined(WIN32) && defined (_MSC_VER)
17 #define LIBTEST_API __declspec(dllexport)
18 #elif defined(__GNUC__)
19 #define LIBTEST_API __attribute__ ((__visibility__ ("default")))
24 typedef void (STDCALL
*fn_ptr
) (void);
26 LIBTEST_API
void STDCALL
27 test_reverse_pinvoke (fn_ptr p
);
36 test_reverse_pinvoke (fn_ptr p
)
38 printf ("testfunc called\n");