[Zlib-devel] zlib 1.2.6 released

Mark Adler madler at madler.net
Sat Feb 11 02:37:06 EST 2012


Jan,

Thanks.  I will make a change like that.  I was wondering if a #define using its own name in the definition would pose a problem, so your email prompted me to look at the C standard.  It's pretty clear about it: "The preprocessing tokens within a preprocessing directive are not subject to macro expansion unless otherwise stated."  (And it's not otherwise stated for #define.)

Mark


On Feb 10, 2012, at 12:57 AM, Jan Nijtmans wrote:
> 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.





More information about the Zlib-devel mailing list