[Zlib-devel] zlib 1.2.4.4 -- a 1.2.5 release candidate

Mark Adler madler at alumni.caltech.edu
Sun Apr 18 13:06:06 EDT 2010


A proposal for the hidden attribute:

Hijack the already used symbol ZLIB_INTERNAL to be defined as __attribute__((visibility ("hidden"))) for GNU C (> 3.3).  Then put ZLIB_INTERNAL in front of the function prototypes and declarations that are external only for the purpose of being used between zlib modules.  E.g.:

    void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start));

Then there is no need to change the default visibility (which causes the slew of warnings on Solaris), and no need to change EXTERN.  Since there is no need to change the default and since __GNUC__ can be tested for the availability of the attribute, the test in configure can be removed and options do not need to be added when compiling.

Mark





More information about the Zlib-devel mailing list