[Zlib-devel] Changing zconf.h

William A. Rowe, Jr. wrowe at rowe-clan.net
Mon May 15 23:43:01 EDT 2006


Cosmin Truta wrote:
> On Mon, 15 May 2006, William A. Rowe, Jr. wrote:
>>
>>Yes - if there were a private, uninstalled zprivate.h file that was
>>not distributed, source-macros are a healthy solution, but putting
>>such macros in the public headers is wrong for reasons identified.
> 
> Well, then there's zutil.h, and, among other things, it's used to work
> around standard C holes. So these macros can be moved from zconf.h to
> zutil.h, and that one is private.

Just as a case in point, zutil.h isn't always private ;-(  We need it,
for example, to decide which OS_CODE a bytestream follows - and have our
very crufty hack in

http://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/filters/mod_deflate.c

to prove it :-/

Bill




More information about the Zlib-devel mailing list