diff options
author | delphij <delphij@FreeBSD.org> | 2010-04-20 18:42:51 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2010-04-20 18:42:51 +0000 |
commit | 4fabf721a11da36455e3953ab7ec79e59da84fdf (patch) | |
tree | b233f95e3f1ecb7f8e66eac5c6ed4fcbcc4684e3 /gzguts.h | |
parent | 3799ed42c7e389ade382b23e36ea24466522c9d7 (diff) | |
download | FreeBSD-src-4fabf721a11da36455e3953ab7ec79e59da84fdf.zip FreeBSD-src-4fabf721a11da36455e3953ab7ec79e59da84fdf.tar.gz |
Vendor import of zlib 1.2.5.
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |