Le ven 30/07/2004 à 11:38, Robert Shearman a écrit : [snip] > >>It wasn't Alexandre's fault. I didn't ask for it to be merged. One of > >>the main problems is that because of calling convention differences for > >>passing unions/structures we can't be binary compatible with Windows at > >>the same time as being source compatible. > >> > >> > > > >You can take a glance at our msvcrt div/ldiv implementation which is > >both source and binary compatible. > >binary: dlls/msvcrt/math.c > >source: include/msvcrt/stdlib.h (which then calls dlls/msvcrt/math.c) > > > > > > NdrClientCall2 is a varargs function, so I don't think that approach > would work.
Sorry, misread the "passing unions/structures" part as "returning unions/structures". Still, if you're able to have both (a source compatible and a binary compatible) independantly, there's probably a clever way to have the source one call the binary one. Vincent