Deleted Added
full compact
gzguts.h (205471) gzguts.h (206002)
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
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#ifdef _LARGEFILE64_SOURCE
6#if _LARGEFILE64_SOURCE == 1
7# ifndef _LARGEFILE_SOURCE
7# ifndef _LARGEFILE_SOURCE
8# define _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 */
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 && defined NO_ERRNO_H
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
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/* MVS fdopen() */
60#ifdef __MVS__
61 #pragma map (fdopen , "\174\174FDOPEN")
62 FILE *fdopen(int, const char *);
63#endif
64
65#ifdef _LARGEFILE64_SOURCE
59#if _LARGEFILE64_SOURCE == 1
66# define z_off64_t off64_t
67#else
68# define z_off64_t z_off_t
69#endif
70
71/* default i/o buffer size -- double this for output when reading */
72#define GZBUFSIZE 8192
73

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

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