aboutsummaryrefslogtreecommitdiff
path: root/gzguts.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:55 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:55 -0700
commit73014202489f913dbffc91d22089ea8a8920c054 (patch)
tree0d86e58ff1445b54be2a04939903f0b6b51f4184 /gzguts.h
parenta7d70663cf4a7d4013ff7d285da01a164ed9b207 (diff)
downloadzlib-73014202489f913dbffc91d22089ea8a8920c054.tar.gz
zlib-73014202489f913dbffc91d22089ea8a8920c054.tar.bz2
zlib-73014202489f913dbffc91d22089ea8a8920c054.zip
zlib 1.2.4.5v1.2.4.5
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 b0a4cbd..0f8fb79 100644
--- a/gzguts.h
+++ b/gzguts.h
@@ -12,7 +12,11 @@
12# endif 12# endif
13#endif 13#endif
14 14
15#define ZLIB_INTERNAL 15#if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ)
16# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
17#else
18# define ZLIB_INTERNAL
19#endif
16 20
17#include <stdio.h> 21#include <stdio.h>
18#include "zlib.h" 22#include "zlib.h"
@@ -112,9 +116,9 @@ typedef struct {
112typedef gz_state FAR *gz_statep; 116typedef gz_state FAR *gz_statep;
113 117
114/* shared functions */ 118/* shared functions */
115ZEXTERN void ZEXPORT gz_error OF((gz_statep, int, const char *)); 119void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *));
116#if defined UNDER_CE 120#if defined UNDER_CE
117ZEXTERN char ZEXPORT *gz_strwinerror OF((DWORD error)); 121char ZLIB_INTERNAL *gz_strwinerror OF((DWORD error));
118#endif 122#endif
119 123
120/* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t 124/* 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));
123#ifdef INT_MAX 127#ifdef INT_MAX
124# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX) 128# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
125#else 129#else
126ZEXTERN unsigned ZEXPORT gz_intmax OF((void)); 130unsigned ZLIB_INTERNAL gz_intmax OF((void));
127# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax()) 131# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
128#endif 132#endif