diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2012-02-18 15:19:44 -0800 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2012-02-18 15:37:28 -0800 |
| commit | a75d6ea070cedd3afa9865e63127c7ee8946d605 (patch) | |
| tree | cae8f559a8b65b262c9372e4e26e5d19c8df9029 | |
| parent | 660103339f1940ef5572d331fb9815db7b8fc526 (diff) | |
| download | zlib-a75d6ea070cedd3afa9865e63127c7ee8946d605.tar.gz zlib-a75d6ea070cedd3afa9865e63127c7ee8946d605.tar.bz2 zlib-a75d6ea070cedd3afa9865e63127c7ee8946d605.zip | |
Require gcc 4.0 or later on Mac OS X to use the hidden attribute.
| -rw-r--r-- | gzguts.h | 3 | ||||
| -rw-r--r-- | zutil.h | 3 |
2 files changed, 4 insertions, 2 deletions
| @@ -12,7 +12,8 @@ | |||
| 12 | # endif | 12 | # endif |
| 13 | #endif | 13 | #endif |
| 14 | 14 | ||
| 15 | #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ) | 15 | #define GCC_VER ((__GNUC__-0) * 100 + __GNUC_MINOR__-0) |
| 16 | #if (GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400 | ||
| 16 | # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) | 17 | # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) |
| 17 | #else | 18 | #else |
| 18 | # define ZLIB_INTERNAL | 19 | # define ZLIB_INTERNAL |
| @@ -13,7 +13,8 @@ | |||
| 13 | #ifndef ZUTIL_H | 13 | #ifndef ZUTIL_H |
| 14 | #define ZUTIL_H | 14 | #define ZUTIL_H |
| 15 | 15 | ||
| 16 | #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ) | 16 | #define GCC_VER ((__GNUC__-0) * 100 + __GNUC_MINOR__-0) |
| 17 | #if (GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400 | ||
| 17 | # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) | 18 | # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) |
| 18 | #else | 19 | #else |
| 19 | # define ZLIB_INTERNAL | 20 | # define ZLIB_INTERNAL |
