Improve the detection of no hidden visibility attribute.

This commit is contained in:
Mark Adler
2012-02-19 23:31:55 -08:00
parent e6d2a8471b
commit 3f4339b61b
3 changed files with 16 additions and 6 deletions

View File

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