aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/zlib/patches/visibility.patch
blob: 3ac1f2d226cef7be4cf9f798f4be4fe896c6442a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/zconf.h
+++ b/zconf.h
@@ -373,6 +373,13 @@
 #  endif
 #endif

+#if !defined(WINDOWS) && !defined(WIN32) && !defined(__BEOS__)
+#  ifdef ZLIB_DLL
+#    define ZEXPORT __attribute__((visibility("default")))
+#    define ZEXPORTVA __attribute__((visibility("default")))
+#  endif
+#endif
+
 #ifndef ZEXTERN
 #  define ZEXTERN extern
 #endif