On 4 September 2014 15:27, Alexandre Julliard julliard@winehq.org wrote:
The attribute is certainly ugly.
Well, no argument there. Do we have any alternatives? We could of course also just change the function prototype, but then that would break source compatibility.
Also it seems to me you are doing this the wrong way around; you don't want to add a return parameter, you want to avoid one. Check how div() is handled.
No, the issue is that gcc returns the result in eax:edx, but native expects a return parameter, so the reverse of MSVCRT_div(). It's most obvious when running d2d1 tests (not submitted yet) compiled with mingw against Windows.