summaryrefslogtreecommitdiff
path: root/zconf.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'zconf.in.h')
-rw-r--r--zconf.in.h89
1 files changed, 44 insertions, 45 deletions
diff --git a/zconf.in.h b/zconf.in.h
index f3c4430..b17d420 100644
--- a/zconf.in.h
+++ b/zconf.in.h
@@ -5,8 +5,8 @@
5 5
6/* @(#) $Id$ */ 6/* @(#) $Id$ */
7 7
8#ifndef _ZCONF_H 8#ifndef ZCONF_H
9#define _ZCONF_H 9#define ZCONF_H
10 10
11/* 11/*
12 * If you *really* need a unique prefix for all types and library functions, 12 * If you *really* need a unique prefix for all types and library functions,
@@ -100,15 +100,6 @@
100# define NO_DUMMY_DECL 100# define NO_DUMMY_DECL
101#endif 101#endif
102 102
103/* Old Borland C incorrectly complains about missing returns: */
104#if defined(__BORLANDC__) && (__BORLANDC__ < 0x460)
105# define NEED_DUMMY_RETURN
106#endif
107#if defined(__TURBOC__) && !defined(__BORLANDC__)
108# define NEED_DUMMY_RETURN
109#endif
110
111
112/* Maximum value for memLevel in deflateInit2 */ 103/* Maximum value for memLevel in deflateInit2 */
113#ifndef MAX_MEM_LEVEL 104#ifndef MAX_MEM_LEVEL
114# ifdef MAXSEG_64K 105# ifdef MAXSEG_64K
@@ -172,46 +163,54 @@
172# endif 163# endif
173#endif 164#endif
174 165
175#if defined(WIN32) && (!defined(ZLIB_WIN32_NODLL)) && (!defined(ZLIB_DLL)) 166/* If building or using a Windows DLL, compile with -DZLIB_DLL.
176# define ZLIB_DLL 167 * The calls to ZEXTERN functions will be more efficient this way.
177#endif 168 */
178 169#if defined(_WINDOWS) || defined(WINDOWS) || defined(WIN32)
179/* Compile with -DZLIB_DLL for Windows DLL support */ 170# ifdef FAR
180#if defined(ZLIB_DLL) 171# undef FAR
181# if defined(_WINDOWS) || defined(WINDOWS) || defined(WIN32) 172# endif
182# ifndef WINAPIV 173 /* For zlib, the basic Win32 API declarations are sufficient. Whenever
183# ifdef FAR 174 * a program that uses zlib requires the full Win32 API set, it has
184# undef FAR 175 * to include <windows.h> prior to "zlib.h".
185# endif 176 */
186# include <windows.h> 177# if defined(WIN32) && (!defined(WIN32_LEAN_AND_MEAN))
187# endif 178# define WIN32_LEAN_AND_MEAN
188# ifdef WIN32
189# define ZEXPORT WINAPI
190# define ZEXPORTVA WINAPIV
191# else
192# define ZEXPORT WINAPI _export
193# define ZEXPORTVA FAR _cdecl _export
194# endif
195# endif 179# endif
196# if defined (__BORLANDC__) 180# include <windows.h>
197# if (__BORLANDC__ >= 0x0500) && defined (WIN32) 181# if !defined(WIN32) || (defined(__BORLANDC__) && (__BORLANDC__ < 0x500))
198# include <windows.h> 182# if defined(ZLIB_DLL) && defined(ZLIB_INTERNAL)
199# define ZEXPORT __declspec(dllexport) WINAPI 183# define ZEXPORT WINAPI _export
200# define ZEXPORTVA __declspec(dllexport) WINAPIV 184# define ZEXPORTVA FAR _cdecl _export
201# else 185# else
202# if defined (_Windows) && defined (__DLL__) 186# define ZEXPORT WINAPI
203# define ZEXPORT _export 187# define ZEXPORTVA FAR _cdecl
204# define ZEXPORTVA _export 188# endif
189# else
190 /* a fully Win32-compliant compiler */
191# define ZEXPORT WINAPI
192# define ZEXPORTVA CDECL
193# ifdef ZLIB_DLL
194# ifdef ZLIB_INTERNAL
195# define ZEXTERN extern __declspec(dllexport)
196# else
197# define ZEXTERN extern __declspec(dllimport)
205# endif 198# endif
199# else
200# define ZEXTERN extern
206# endif 201# endif
207# endif 202# endif
208#endif 203#endif
209 204
210#if defined (__BEOS__) 205#if defined (__BEOS__)
211# if defined (ZLIB_DLL) 206# ifdef ZLIB_DLL
212# define ZEXTERN extern __declspec(dllexport) 207# ifdef ZLIB_INTERNAL
213# else 208# define ZEXPORT __declspec(dllexport)
214# define ZEXTERN extern __declspec(dllimport) 209# define ZEXPORTVA __declspec(dllexport)
210# else
211# define ZEXPORT __declspec(dllimport)
212# define ZEXPORTVA __declspec(dllimport)
213# endif
215# endif 214# endif
216#endif 215#endif
217 216
@@ -226,7 +225,7 @@
226#endif 225#endif
227 226
228#ifndef FAR 227#ifndef FAR
229# define FAR 228# define FAR
230#endif 229#endif
231 230
232#if !defined(__MACTYPES__) 231#if !defined(__MACTYPES__)
@@ -290,4 +289,4 @@ typedef uLong FAR uLongf;
290# pragma map(inflate_copyright,"INCOPY") 289# pragma map(inflate_copyright,"INCOPY")
291#endif 290#endif
292 291
293#endif /* _ZCONF_H */ 292#endif /* ZCONF_H */