[Zlib-devel] Avoiding WIN* macros in GNU code

Dmitriy Anisimkov anisimkov at omsknet.ru
Mon Jun 16 23:07:00 EDT 2003


Cosmin Truta wrote:
> On Mon, 16 Jun 2003, Dmitriy Anisimkov wrote:
>>The Zlib API is stable enough.
> 
> Which means that zlib-1.x.x will last for a long time, which means that
> ZLIB1.DLL will last for a long time. Which is good.
> (Look at OLE2.DLL, which is around for more than 10 years.)

I would not change my mind. I do not like the version number in the dll name. But zlib authors could ignore my oppinion, it is not a problem for me ;-).
My main request is that Win32 build should have CDECL calling convention.
I need it becouse I'm writting portable software in Ada95.
I do not need dll, i need just cdecl calling convention, either in dll or in static library, moreover i prefer to use the static library, becouse zlib is a small enought. So the dll name does not matter for me.
 
> 
>>If the new big changes would broke backward compartibility, then we
>>have to change name.

The good library should never broke backward compartibility, it is excentional situation.

>>zlib-c.dll
>>zlib-std.dll
> 
> 
> "zlib-std" is misleading: people would think it means "standard zlib",
> not "zlib with stdcall-decorated API".

Ok. Lets name it zlip-winapi.dll.
But again, it does not real matter for me. I need just to be able to build zlib with CDECL calling convention without changing sources.

I could change the sources on my own, I could write CDECL wrapper, but I think it is horrible way.
I think that CDECL should be default calling convention on all platforms, at least for static library.





More information about the Zlib-devel mailing list