23 Jan
2019
23 Jan
'19
1:09 p.m.
On 1/23/19 1:35 PM, Dmitry Timoshkov wrote:
Jacek Caban <jacek(a)codeweavers.com> wrote:
+static int __cdecl (*int_return)(void); +static int __cdecl (*square)(int x); +static int __cdecl (*sum)(int x, int y); +static signed char __cdecl (*sum_char)(signed char x, signed char y); +static short __cdecl (*sum_short)(short x, short y); ...
__cdecl should be inside of parentheses so that the calling convention belongs to the function and not to the return type, otherwise MSVC would fail to compile such declarations.
Good catch, I will send a new patch. Ideally it would use typeof(), but it's also problematic for MSVC... Thanks, Jacek