Simplify test and use of gcc hidden attribute.

This commit is contained in:
Mark Adler
2012-03-03 00:20:00 -08:00
parent 2547c6c81f
commit dab7531ecc
3 changed files with 5 additions and 9 deletions

View File

@@ -13,7 +13,7 @@
#ifndef ZUTIL_H
#define ZUTIL_H
#if ((__GNUC__-0) * 100 + __GNUC_MINOR__-0) >= 303 && !defined(NO_VIZ)
#ifdef HAVE_HIDDEN
# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
#else
# define ZLIB_INTERNAL