From: Mark Adler Date: Mon, 20 Feb 2012 06:45:10 +0000 (-0800) Subject: Do not use the visibility attribute if NO_VIZ defined. X-Git-Tag: v1.2.7~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6d2a8471b89d1c1d9fd84d14f26f516f5f66238;p=thirdparty%2Fzlib-ng.git Do not use the visibility attribute if NO_VIZ defined. --- diff --git a/gzguts.h b/gzguts.h index 6800fa765..735e80827 100644 --- a/gzguts.h +++ b/gzguts.h @@ -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 diff --git a/zutil.h b/zutil.h index f42214791..13ea44d76 100644 --- a/zutil.h +++ b/zutil.h @@ -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