Do not use the visibility attribute if NO_VIZ defined.

This commit is contained in:
Mark Adler 2012-02-19 22:45:10 -08:00
parent 8435052a6b
commit e6d2a8471b
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
#endif
#define GCC_VER ((__GNUC__-0) * 100 + __GNUC_MINOR__-0)
#if (GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400
#if ((GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400) && !defined(NO_VIZ)
# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
#else
# define ZLIB_INTERNAL

View File

@ -14,7 +14,7 @@
#define ZUTIL_H
#define GCC_VER ((__GNUC__-0) * 100 + __GNUC_MINOR__-0)
#if (GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400
#if ((GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400) && !defined(NO_VIZ)
# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
#else
# define ZLIB_INTERNAL