]> git.lizzy.rs Git - zlib.git/commitdiff
Require gcc 4.0 or later on Mac OS X to use the hidden attribute.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 18 Feb 2012 23:19:44 +0000 (15:19 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sat, 18 Feb 2012 23:37:28 +0000 (15:37 -0800)
gzguts.h
zutil.h

index f16295064ebdd9778e0e7c61500467ea9ddf2435..6800fa7654f3722ac87d1a9ff7814aca9ffd19a6 100644 (file)
--- a/gzguts.h
+++ b/gzguts.h
@@ -12,7 +12,8 @@
 #  endif
 #endif
 
-#if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ)
+#define GCC_VER ((__GNUC__-0) * 100 + __GNUC_MINOR__-0)
+#if (GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400
 #  define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
 #else
 #  define ZLIB_INTERNAL
diff --git a/zutil.h b/zutil.h
index de42dfb6843d92789ce8dbe35f5d3ba04801f639..f42214791d58caee19f0d8321885adbf0ac28d28 100644 (file)
--- a/zutil.h
+++ b/zutil.h
@@ -13,7 +13,8 @@
 #ifndef ZUTIL_H
 #define ZUTIL_H
 
-#if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ)
+#define GCC_VER ((__GNUC__-0) * 100 + __GNUC_MINOR__-0)
+#if (GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400
 #  define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
 #else
 #  define ZLIB_INTERNAL