diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:34:55 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:34:55 -0700 |
commit | 73014202489f913dbffc91d22089ea8a8920c054 (patch) | |
tree | 0d86e58ff1445b54be2a04939903f0b6b51f4184 /gzguts.h | |
parent | a7d70663cf4a7d4013ff7d285da01a164ed9b207 (diff) | |
download | zlib-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.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 { | |||
112 | typedef gz_state FAR *gz_statep; | 116 | typedef gz_state FAR *gz_statep; |
113 | 117 | ||
114 | /* shared functions */ | 118 | /* shared functions */ |
115 | ZEXTERN void ZEXPORT gz_error OF((gz_statep, int, const char *)); | 119 | void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *)); |
116 | #if defined UNDER_CE | 120 | #if defined UNDER_CE |
117 | ZEXTERN char ZEXPORT *gz_strwinerror OF((DWORD error)); | 121 | char 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 |
126 | ZEXTERN unsigned ZEXPORT gz_intmax OF((void)); | 130 | unsigned 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 |