summaryrefslogtreecommitdiff
path: root/zconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'zconf.h')
-rw-r--r--zconf.h57
1 files changed, 10 insertions, 47 deletions
diff --git a/zconf.h b/zconf.h
index e17520c..3d78742 100644
--- a/zconf.h
+++ b/zconf.h
@@ -1,5 +1,5 @@
1/* zconf.h -- configuration of the zlib compression library 1/* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-1996 Jean-loup Gailly. 2 * Copyright (C) 1995 Jean-loup Gailly.
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
@@ -9,40 +9,11 @@
9#define _ZCONF_H 9#define _ZCONF_H
10 10
11/* 11/*
12 * People prefering a unique prefix for all types and library functions 12 The library does not install any signal handler. It is recommended to
13 * should compile with -DZ_PREFIX 13 add at least a handler for SIGSEGV when decompressing; the library checks
14 the consistency of the input data whenever possible but may go nuts
15 for some forms of corrupted input.
14 */ 16 */
15#ifdef Z_PREFIX
16# define deflateInit_ z_deflateInit_
17# define deflate z_deflate
18# define deflateEnd z_deflateEnd
19# define inflateInit_ z_inflateInit_
20# define inflate z_inflate
21# define inflateEnd z_inflateEnd
22# define deflateInit2_ z_deflateInit2_
23# define deflateCopy z_deflateCopy
24# define deflateReset z_deflateReset
25# define deflateParams z_deflateParams
26# define inflateInit2_ z_inflateInit2_
27# define inflateSync z_inflateSync
28# define inflateReset z_inflateReset
29# define compress z_compress
30# define uncompress z_uncompress
31# define adler32 z_adler32
32# define crc32 z_crc32
33# define get_crc_table z_get_crc_table
34
35# define Byte z_Byte
36# define uInt z_uInt
37# define uLong z_uLong
38# define Bytef z_Bytef
39# define charf z_charf
40# define intf z_intf
41# define uIntf z_uIntf
42# define uLongf z_uLongf
43# define voidpf z_voidpf
44# define voidp z_voidp
45#endif
46 17
47#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) 18#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
48# define WIN32 19# define WIN32
@@ -78,7 +49,6 @@
78 49
79#ifdef __MWERKS__ /* Metrowerks CodeWarrior declares fileno() in unix.h */ 50#ifdef __MWERKS__ /* Metrowerks CodeWarrior declares fileno() in unix.h */
80# include <unix.h> 51# include <unix.h>
81# define Byte _Byte /* Byte already used on Mac */
82#endif 52#endif
83 53
84/* Maximum value for memLevel in deflateInit2 */ 54/* Maximum value for memLevel in deflateInit2 */
@@ -125,7 +95,6 @@
125 * just define FAR to be empty. 95 * just define FAR to be empty.
126 */ 96 */
127#if defined(M_I86SM) || defined(M_I86MM) /* MSC small or medium model */ 97#if defined(M_I86SM) || defined(M_I86MM) /* MSC small or medium model */
128# define SMALL_MEDIUM
129# ifdef _MSC_VER 98# ifdef _MSC_VER
130# define FAR __far 99# define FAR __far
131# else 100# else
@@ -133,26 +102,20 @@
133# endif 102# endif
134#endif 103#endif
135#if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__)) 104#if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__))
136# define SMALL_MEDIUM 105# define FAR _far /* completely untested, just a best guess */
137# define FAR __far
138#endif 106#endif
139#ifndef FAR 107#ifndef FAR
140# define FAR 108# define FAR
141#endif 109#endif
142/* The Watcom compiler defines M_I86SM and __SMALL__ even in 32 bit mode */
143#if defined(__WATCOMC__) && defined(__386__)
144# undef FAR
145# undef SMALL_MEDIUM
146#endif
147 110
148typedef unsigned char Byte; /* 8 bits */ 111typedef unsigned char Byte; /* 8 bits */
149typedef unsigned int uInt; /* 16 bits or more */ 112typedef unsigned int uInt; /* 16 bits or more */
150typedef unsigned long uLong; /* 32 bits or more */ 113typedef unsigned long uLong; /* 32 bits or more */
151 114
152typedef Byte FAR Bytef; 115typedef Byte FAR Bytef;
153typedef char FAR charf; 116typedef char FAR charf;
154typedef int FAR intf; 117typedef int FAR intf;
155typedef uInt FAR uIntf; 118typedef uInt FAR uIntf;
156typedef uLong FAR uLongf; 119typedef uLong FAR uLongf;
157 120
158#ifdef STDC 121#ifdef STDC