Opened 14 years ago

Closed 14 years ago

#1870 closed Bugs (fixed)

zlib_base function names must differ from their zlib counterpart

Reported by: robert.bielik@… Owned by: Jonathan Turkanis
Milestone: Boost 1.36.0 Component: iostreams
Version: Boost 1.35.0 Severity: Problem
Keywords: zlib Z_PREFIX Cc:

Description

If Z_PREFIX has been used to compile zlib, boost::iostreams must adhere to that, but because a few names (inflate/deflate/alloc_func/free_func) are defined in zlib's zconf.h file where Z_PREFIX is used to add a z_ prefix, boost::iostreams zlib.cpp will fail to compile. Proposed name changes: zlib_base::inflate -> zlib_base::zlib_inflate zlib_base::deflate -> zlib_base::zlib_deflate typedef zlib::alloc_func -> zlib::alloc_function typedef zlib::free_func -> zlib::free_function

Change History (1)

comment:1 by Jonathan Turkanis, 14 years ago

Resolution: fixed
Status: newclosed

(In [45783]) added 'x' prefix to several function and type names, to prevent them from being renamed by the preprocessor when Z_PREFIX is defined (fixes #1870)

Note: See TracTickets for help on using tickets.