[Zlib-devel] Re: [png-implement] Binary-incompatible change in the DLL interface of zlib
Dmitriy Anisimkov
anisimkov at omsknet.ru
Mon Jul 28 09:43:02 EDT 2003
Gerard Juyn wrote:
>>We believe the only way to get out of this mess is to change the
>>calling convention to CDECL (which is now the same as the one used in
>>the static lib), and to build the DLL under a new name. The name used
>>for the new DLL is ZLIB1.DLL.
>
> IMHO using CDECL for a DLL is a 'bad design decision'. A DLL is supposed to
> be language-independant and making it CDECL binds it specifically to C/C++.
I would say that it is 'good design desision'. STDCALL is supported only under
Win32 platform, CDECL supported on every known computer platforms and ZLib is
a portable software. If the language does not support CDECL calling convension
it is non-portable language, zlib could not be fully compartible with non-portable
programming languages. But of couse you can write C wrapper for support
compartibility with non-portable languages.
More information about the Zlib-devel
mailing list