Jon Griffiths writes:
> Hi all,
> 
> While updating my crt test harness, I found a call returning strange
> values using the native DLL. The call is "ldiv", which returns an
> ldiv_t struct _by value_. ldiv_t is defined the same under linux and
> windows. The spec entry is:
> 
> @ cdecl ldiv(long long) ldiv
> 
and in another mail:

> i.e. I load the struct into registers before returning. Of course,
> this wont work with a unix caller.

If the results are returned in registers, I think the "register"
definition is the right thing to use instead of "cdecl". However in
that case, we can't reuse the libc function.

Bye

Uwe Bonnes                [EMAIL PROTECTED]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

Reply via email to