summaryrefslogtreecommitdiff
path: root/zconf.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'zconf.in.h')
-rw-r--r--zconf.in.h142
1 files changed, 78 insertions, 64 deletions
diff --git a/zconf.in.h b/zconf.in.h
index 28e9235..7ef861c 100644
--- a/zconf.in.h
+++ b/zconf.in.h
@@ -51,43 +51,59 @@
51# define voidp z_voidp 51# define voidp z_voidp
52#endif 52#endif
53 53
54#if defined(__MSDOS__) && !defined(MSDOS)
55# define MSDOS
56#endif
57#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
58# define OS2
59#endif
60#if defined(_WINDOWS) && !defined(WINDOWS)
61# define WINDOWS
62#endif
54#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) 63#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
55# define WIN32 64# define WIN32
56#endif 65#endif
57#if defined(__GNUC__) || defined(WIN32) || defined(__386__) || defined(i386) 66#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
58# ifndef __32BIT__ 67# if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
59# define __32BIT__ 68# ifndef SYS16BIT
69# define SYS16BIT
70# endif
60# endif 71# endif
61#endif 72#endif
62#if defined(__MSDOS__) && !defined(MSDOS)
63# define MSDOS
64#endif
65 73
66/* 74/*
67 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more 75 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
68 * than 64k bytes at a time (needed on systems with 16-bit int). 76 * than 64k bytes at a time (needed on systems with 16-bit int).
69 */ 77 */
70#if defined(MSDOS) && !defined(__32BIT__) 78#ifdef SYS16BIT
71# define MAXSEG_64K 79# define MAXSEG_64K
72#endif 80#endif
73#ifdef MSDOS 81#ifdef MSDOS
74# define UNALIGNED_OK 82# define UNALIGNED_OK
75#endif 83#endif
76 84
77#if (defined(MSDOS) || defined(_WINDOWS) || defined(WIN32)) && !defined(STDC) 85#ifdef __STDC_VERSION__
78# define STDC
79#endif
80#if defined(__STDC__) || defined(__cplusplus) || defined(__OS2__)
81# ifndef STDC 86# ifndef STDC
82# define STDC 87# define STDC
83# endif 88# endif
84#endif 89# if __STDC_VERSION__ >= 199901L
85 90# ifndef STDC99
86#if defined __HOS_AIX__ 91# define STDC99
87# ifndef STDC 92# endif
88# define STDC
89# endif 93# endif
90#endif 94#endif
95#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
96# define STDC
97#endif
98#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
99# define STDC
100#endif
101#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
102# define STDC
103#endif
104#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
105# define STDC
106#endif
91 107
92#ifndef STDC 108#ifndef STDC
93# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ 109# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
@@ -96,7 +112,7 @@
96#endif 112#endif
97 113
98/* Some Mac compilers merge all .h files incorrectly: */ 114/* Some Mac compilers merge all .h files incorrectly: */
99#if defined(__MWERKS__) || defined(applec) ||defined(THINK_C) ||defined(__SC__) 115#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
100# define NO_DUMMY_DECL 116# define NO_DUMMY_DECL
101#endif 117#endif
102 118
@@ -147,58 +163,56 @@
147 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model, 163 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
148 * just define FAR to be empty. 164 * just define FAR to be empty.
149 */ 165 */
150#if (defined(M_I86SM) || defined(M_I86MM)) && !defined(__32BIT__) 166#ifdef SYS16BIT
151 /* MSC small or medium model */ 167# if defined(M_I86SM) || defined(M_I86MM)
152# define SMALL_MEDIUM 168 /* MSC small or medium model */
153# ifdef _MSC_VER 169# define SMALL_MEDIUM
154# define FAR _far 170# ifdef _MSC_VER
155# else 171# define FAR _far
156# define FAR far 172# else
173# define FAR far
174# endif
157# endif 175# endif
158#endif 176# if (defined(__SMALL__) || defined(__MEDIUM__))
159#if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__)) 177 /* Turbo C small or medium model */
160# ifndef __32BIT__
161# define SMALL_MEDIUM 178# define SMALL_MEDIUM
162# define FAR _far 179# ifdef __BORLANDC__
180# define FAR _far
181# else
182# define FAR far
183# endif
163# endif 184# endif
164#endif 185#endif
165 186
166/* If building or using a Windows DLL, compile with -DZLIB_DLL. 187#if defined(WINDOWS) || defined(WIN32)
167 * The calls to ZEXTERN functions will be more efficient this way. 188 /* If building or using zlib as a DLL, define ZLIB_DLL.
168 */ 189 * This is not mandatory, but it offers a little performance increase.
169#if defined(_WINDOWS) || defined(WINDOWS) || defined(WIN32)
170# ifdef FAR
171# undef FAR
172# endif
173 /* For zlib, the basic Win32 API declarations are sufficient. Whenever
174 * a program that uses zlib requires the full Win32 API set, it has
175 * to include <windows.h> prior to "zlib.h".
176 */ 190 */
177# if defined(WIN32) && (!defined(WIN32_LEAN_AND_MEAN)) 191# ifdef ZLIB_DLL
178# define WIN32_LEAN_AND_MEAN 192# if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
179# endif
180# include <windows.h>
181# if !defined(WIN32) || (defined(__BORLANDC__) && (__BORLANDC__ < 0x500))
182# if defined(ZLIB_DLL) && defined(ZLIB_INTERNAL)
183# define ZEXPORT WINAPI _export
184# define ZEXPORTVA FAR _cdecl _export
185# else
186# define ZEXPORT FAR _cdecl
187# define ZEXPORTVA FAR _cdecl
188# endif
189# else
190 /* a fully Win32-compliant compiler */
191# define ZEXPORTVA CDECL
192# ifdef ZLIB_DLL
193# define ZEXPORT WINAPI
194# ifdef ZLIB_INTERNAL 193# ifdef ZLIB_INTERNAL
195# define ZEXTERN extern __declspec(dllexport) 194# define ZEXTERN extern __declspec(dllexport)
196# else 195# else
197# define ZEXTERN extern __declspec(dllimport) 196# define ZEXTERN extern __declspec(dllimport)
198# endif 197# endif
198# endif
199# endif /* ZLIB_DLL */
200 /* If building or using zlib with the WINAPI/WINAPIV calling convention,
201 * define ZLIB_WINAPI.
202 * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
203 */
204# ifdef ZLIB_WINAPI
205# ifdef FAR
206# undef FAR
207# endif
208# include <windows.h>
209 /* No need for _export, use ZLIB.DEF instead. */
210 /* For complete Windows compatibility, use WINAPI, not __stdcall. */
211# define ZEXPORT WINAPI
212# ifdef WIN32
213# define ZEXPORTVA WINAPIV
199# else 214# else
200# define ZEXPORT CDECL 215# define ZEXPORTVA FAR CDECL
201# define ZEXTERN extern
202# endif 216# endif
203# endif 217# endif
204#endif 218#endif
@@ -215,15 +229,15 @@
215# endif 229# endif
216#endif 230#endif
217 231
232#ifndef ZEXTERN
233# define ZEXTERN extern
234#endif
218#ifndef ZEXPORT 235#ifndef ZEXPORT
219# define ZEXPORT 236# define ZEXPORT
220#endif 237#endif
221#ifndef ZEXPORTVA 238#ifndef ZEXPORTVA
222# define ZEXPORTVA 239# define ZEXPORTVA
223#endif 240#endif
224#ifndef ZEXTERN
225# define ZEXTERN extern
226#endif
227 241
228#ifndef FAR 242#ifndef FAR
229# define FAR 243# define FAR
@@ -248,12 +262,12 @@ typedef uLong FAR uLongf;
248 262
249#ifdef STDC 263#ifdef STDC
250 typedef void const *voidpc; 264 typedef void const *voidpc;
251 typedef void FAR *voidpf; 265 typedef void FAR *voidpf;
252 typedef void *voidp; 266 typedef void *voidp;
253#else 267#else
254 typedef Byte const *voidpc; 268 typedef Byte const *voidpc;
255 typedef Byte FAR *voidpf; 269 typedef Byte FAR *voidpf;
256 typedef Byte *voidp; 270 typedef Byte *voidp;
257#endif 271#endif
258 272
259#if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */ 273#if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */