[Zlib-devel] zlib 1.2.6 released
Jan Nijtmans
nijtmans at users.sourceforge.net
Fri Feb 10 03:57:36 EST 2012
One more suggestion for zlib 1.2.7. Currently, gzgetc is a macro around the
function gzgetc_, which is actually the same as gzgetc. It is possible
to change the macro, such that it wraps around the original gzgetc function,
which makes the gzgetc_ function obsolete.
Here is a patch doing that. Tested with mingw, but should work fine
with any other compiler.
What the patch does:
- Modify the gzgetc macro (using braces to prevent recursive macro
substitution, even though I don't know any compiler doing that)
- Move the gzgetc_ signature from zlib.h to gzread.c
- In gzread.c, make gzgetc_ a function calling gzgetc, and
not the other way around.
Regards,
Jan Nijtmans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zlib.diff
Type: application/octet-stream
Size: 1486 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20120210/8538ca65/attachment.obj>
More information about the Zlib-devel
mailing list