Mercurial > pub > dyncall > dyncall
comparison test/plain/test_main.c @ 636:a388de1c822e
- test/plain: fix "_cdecl already defined" warnings/errors on some windows related configs/platforms (e.g. mingw)
author | Tassilo Philipp |
---|---|
date | Mon, 21 Nov 2022 09:53:11 +0100 |
parents | c477ddd64718 |
children | 7f89338dbd3f |
comparison
equal
deleted
inserted
replaced
635:840a870c093c | 636:a388de1c822e |
---|---|
45 DCdouble API fun_##NAME##_d(DCdouble x) { return x; } \ | 45 DCdouble API fun_##NAME##_d(DCdouble x) { return x; } \ |
46 DCpointer API fun_##NAME##_p(DCpointer x) { return x; } | 46 DCpointer API fun_##NAME##_p(DCpointer x) { return x; } |
47 | 47 |
48 /* __cdecl */ | 48 /* __cdecl */ |
49 | 49 |
50 #if !defined(DC__OS_Win32) | 50 #if defined(DC__Arch_Intel_x86) && !defined(DC__C_MSVC) && !defined(__cdecl) |
51 # define __cdecl | 51 # define __cdecl |
52 #endif | 52 #endif |
53 | 53 |
54 int g_void_testval; | 54 int g_void_testval; |
55 DEF_FUNCS(__cdecl,c) | 55 DEF_FUNCS(__cdecl,c) |