Re: SV: [xml] windows binary with different calling



Correcting myself:
 
The .def file approach takes only care of the linking step, but  it cannot
inform the compiler about the calling convention used. The link between the
calling convention problem and the .def file non-problem is only, that
resigning to the former and using SOME_FUNKY_STUFF, will allow to use it
also for __declspec(dll{ex|im}port) and the .def file would become obsolete.

As Igor remembered us, you actually need two macros to address both 
problems, as in 

ZEXTERN const char * ZEXPORT zLibVersion (void)

Peter




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]