aboutsummaryrefslogtreecommitdiff
path: root/zutil.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:22 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:22 -0700
commit05d47d2627a68a15ba23fb10b17fbc73551aeec1 (patch)
tree8d5e1688e69c51c487e8b44a9e9d8ca71f67cfd0 /zutil.h
parenta1141160bcf563f1a269be68a21f1651f687bb69 (diff)
downloadzlib-05d47d2627a68a15ba23fb10b17fbc73551aeec1.tar.gz
zlib-05d47d2627a68a15ba23fb10b17fbc73551aeec1.tar.bz2
zlib-05d47d2627a68a15ba23fb10b17fbc73551aeec1.zip
zlib 1.2.4.1v1.2.4.1
Diffstat (limited to 'zutil.h')
-rw-r--r--zutil.h31
1 files changed, 11 insertions, 20 deletions
diff --git a/zutil.h b/zutil.h
index 025035d..b21a19c 100644
--- a/zutil.h
+++ b/zutil.h
@@ -24,19 +24,6 @@
24# include <stdlib.h> 24# include <stdlib.h>
25#endif 25#endif
26 26
27#if defined(UNDER_CE) && defined(NO_ERRNO_H)
28# define zseterrno(ERR) SetLastError((DWORD)(ERR))
29# define zerrno() ((int)GetLastError())
30#else
31# ifdef NO_ERRNO_H
32 extern int errno;
33# else
34# include <errno.h>
35# endif
36# define zseterrno(ERR) do { errno = (ERR); } while (0)
37# define zerrno() errno
38#endif
39
40#ifndef local 27#ifndef local
41# define local static 28# define local static
42#endif 29#endif
@@ -167,12 +154,22 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
167 #pragma warn -8066 154 #pragma warn -8066
168#endif 155#endif
169 156
170#ifdef _LARGEFILE64_SOURCE 157#if _LARGEFILE64_SOURCE == 1 && _LFS64_LARGEFILE == 1
171# define z_off64_t off64_t 158# define z_off64_t off64_t
172#else 159#else
173# define z_off64_t z_off_t 160# define z_off64_t z_off_t
174#endif 161#endif
175 162
163/* provide prototypes for these when building zlib without LFS */
164#if _LARGEFILE64_SOURCE != 1 || _LFS64_LARGEFILE != 1
165 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
166 ZEXTERN off_t ZEXPORT gzseek64 OF((gzFile, off_t, int));
167 ZEXTERN off_t ZEXPORT gztell64 OF((gzFile));
168 ZEXTERN off_t ZEXPORT gzoffset64 OF((gzFile));
169 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off_t));
170 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off_t));
171#endif
172
176 /* common defaults */ 173 /* common defaults */
177 174
178#ifndef OS_CODE 175#ifndef OS_CODE
@@ -183,12 +180,6 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
183# define F_OPEN(name, mode) fopen((name), (mode)) 180# define F_OPEN(name, mode) fopen((name), (mode))
184#endif 181#endif
185 182
186#ifdef _LARGEFILE64_SOURCE
187# define F_OPEN64(name, mode) fopen64((name), (mode))
188#else
189# define F_OPEN64(name, mode) fopen((name), (mode))
190#endif
191
192 /* functions */ 183 /* functions */
193 184
194#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) 185#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550)