Pelles C forum

Pelles C => General discussions => Topic started by: benjamin on December 09, 2006, 06:22:30 AM

Title: compiling zlib
Post by: benjamin on December 09, 2006, 06:22:30 AM
Humm, so there we have this nice source code, full of pragmas, defines and shit,
what does pellec thinks of functions defined like this:
ZEXTERN int ZEXPORT    gzclose OF((gzFile file));
well it doesnt like too much, any succesfull approach ?
Title: Re: compiling zlib
Post by: severach on January 01, 2007, 01:43:32 AM
Pelles defaults to __stdcall calling format which the ZLIB code is not ready for. You must change the default to __cdecl. CRC32 is the only part of ZLIB that I used and I decided it was easier to rewrite it in clean C than to coax the ZLIB code into working with my list of compilers.