widl: Explicitly declare default function's calling convention to avoid win64 problems.

Jacek Caban jacek at codeweavers.com
Tue Sep 28 09:18:40 CDT 2010


  On 9/28/10 2:09 PM, Alexandre Julliard wrote:
> Jacek Caban<jacek at codeweavers.com>  writes:
>
>> @@ -369,7 +369,7 @@ static void write_type_v(FILE *h, type_t *t, int is_field, int declonly, const c
>>       if (type_get_type_detect_alias(pt) == TYPE_FUNCTION) {
>>         int i;
>>         const char *callconv = get_attrp(pt->attrs, ATTR_CALLCONV);
>> -      if (!callconv&&  is_object_interface) callconv = "STDMETHODCALLTYPE";
>> +      if (!callconv) callconv = is_object_interface ? "STDMETHODCALLTYPE" : "__cdecl";
> It may be useful to be able to declare functions that use the native
> calling convention, I don't think we want to prevent that.

Fair enough, I just wanted to make Wine safer for such cases.

Jacek




More information about the wine-devel mailing list