]> git.lizzy.rs Git - zlib.git/commitdiff
Do not use the visibility attribute if NO_VIZ defined.
authorMark Adler <madler@alumni.caltech.edu>
Mon, 20 Feb 2012 06:45:10 +0000 (22:45 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Mon, 20 Feb 2012 06:45:10 +0000 (22:45 -0800)
gzguts.h
zutil.h

index 6800fa7654f3722ac87d1a9ff7814aca9ffd19a6..735e8082736e8aff26c09d2e4f1e9cd7e48c9fcc 100644 (file)
--- 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 f42214791d58caee19f0d8321885adbf0ac28d28..13ea44d76e34e25dded56f8535f523e09127f7ba 100644 (file)
--- 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