summaryrefslogtreecommitdiff
path: root/gzguts.h
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2010-04-20 18:42:51 +0000
committerXin LI <delphij@FreeBSD.org>2010-04-20 18:42:51 +0000
commit20c14533dda078fcc83f6ad7f1221933f1fdd87b (patch)
treeb233f95e3f1ecb7f8e66eac5c6ed4fcbcc4684e3 /gzguts.h
parent1a0a89c328dc7176c2058e08087761d0b9957ff8 (diff)
Diffstat (limited to 'gzguts.h')
-rw-r--r--gzguts.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gzguts.h b/gzguts.h
index b0a4cbdc3366b..0f8fb79f87d4f 100644
--- a/gzguts.h
+++ b/gzguts.h
@@ -12,7 +12,11 @@
# endif
#endif
-#define ZLIB_INTERNAL
+#if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ)
+# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
+#else
+# define ZLIB_INTERNAL
+#endif
#include <stdio.h>
#include "zlib.h"
@@ -112,9 +116,9 @@ typedef struct {
typedef gz_state FAR *gz_statep;
/* shared functions */
-ZEXTERN void ZEXPORT gz_error OF((gz_statep, int, const char *));
+void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *));
#if defined UNDER_CE
-ZEXTERN char ZEXPORT *gz_strwinerror OF((DWORD error));
+char ZLIB_INTERNAL *gz_strwinerror OF((DWORD error));
#endif
/* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t
@@ -123,6 +127,6 @@ ZEXTERN char ZEXPORT *gz_strwinerror OF((DWORD error));
#ifdef INT_MAX
# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
#else
-ZEXTERN unsigned ZEXPORT gz_intmax OF((void));
+unsigned ZLIB_INTERNAL gz_intmax OF((void));
# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
#endif