aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/zlib/visibility.patch
blob: af49fbffd7cec17b1bcb67a39e4bd71347e3648a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- zconf.h.in	2013-01-23 21:22:22.512584179 -0500
+++ zconf.h.in	2013-01-23 21:21:56.312584196 -0500
@@ -348,7 +348,11 @@
 #endif
 
 #ifndef ZEXTERN
-#  define ZEXTERN extern
+#  ifdef HAVE_HIDDEN
+#    define ZEXTERN extern __attribute__((visibility ("default")))
+#  else
+#    define ZEXTERN extern
+#  endif
 #endif
 #ifndef ZEXPORT
 #  define ZEXPORT