Deleted Added
sdiff udiff text old ( 205471 ) new ( 206002 )
full compact
1/* gzguts.h -- zlib internal header definitions for gz* operations
2 * Copyright (C) 2004, 2005, 2010 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6#if _LARGEFILE64_SOURCE == 1
7# ifndef _LARGEFILE_SOURCE
8# define _LARGEFILE_SOURCE 1
9# endif
10# ifdef _FILE_OFFSET_BITS
11# undef _FILE_OFFSET_BITS
12# endif
13#endif
14
15#define ZLIB_INTERNAL
16

--- 22 unchanged lines hidden (view full) ---

39
40/* gz* functions always use library allocation functions */
41#ifndef STDC
42 extern voidp malloc OF((uInt size));
43 extern void free OF((voidpf ptr));
44#endif
45
46/* get errno and strerror definition */
47#if defined UNDER_CE
48# include <windows.h>
49# define zstrerror() gz_strwinerror((DWORD)GetLastError())
50#else
51# ifdef STDC
52# include <errno.h>
53# define zstrerror() strerror(errno)
54# else
55# define zstrerror() "stdio error (consult errno)"
56# endif
57#endif
58
59#if _LARGEFILE64_SOURCE == 1
60# define z_off64_t off64_t
61#else
62# define z_off64_t z_off_t
63#endif
64
65/* default i/o buffer size -- double this for output when reading */
66#define GZBUFSIZE 8192
67

--- 38 unchanged lines hidden (view full) ---

106 char *msg; /* error message */
107 /* zlib inflate or deflate stream */
108 z_stream strm; /* stream structure in-place (not a pointer) */
109} gz_state;
110typedef gz_state FAR *gz_statep;
111
112/* shared functions */
113ZEXTERN void ZEXPORT gz_error OF((gz_statep, int, const char *));
114#if defined UNDER_CE
115ZEXTERN char ZEXPORT *gz_strwinerror OF((DWORD error));
116#endif
117
118/* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t
119 value -- needed when comparing unsigned to z_off64_t, which is signed
120 (possible z_off64_t types off_t, off64_t, and long are all signed) */
121#ifdef INT_MAX
122# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
123#else
124ZEXTERN unsigned ZEXPORT gz_intmax OF((void));
125# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
126#endif