summaryrefslogtreecommitdiff
path: root/zconf.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'zconf.in.h')
-rw-r--r--zconf.in.h31
1 files changed, 22 insertions, 9 deletions
diff --git a/zconf.in.h b/zconf.in.h
index 8ef845e..f3c4430 100644
--- a/zconf.in.h
+++ b/zconf.in.h
@@ -91,7 +91,7 @@
91 91
92#ifndef STDC 92#ifndef STDC
93# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ 93# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
94# define const /* note: need a more gentle solution here */ 94# define const /* note: need a more gentle solution here */
95# endif 95# endif
96#endif 96#endif
97 97
@@ -101,7 +101,10 @@
101#endif 101#endif
102 102
103/* Old Borland C incorrectly complains about missing returns: */ 103/* Old Borland C incorrectly complains about missing returns: */
104#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500) 104#if defined(__BORLANDC__) && (__BORLANDC__ < 0x460)
105# define NEED_DUMMY_RETURN
106#endif
107#if defined(__TURBOC__) && !defined(__BORLANDC__)
105# define NEED_DUMMY_RETURN 108# define NEED_DUMMY_RETURN
106#endif 109#endif
107 110
@@ -169,17 +172,24 @@
169# endif 172# endif
170#endif 173#endif
171 174
175#if defined(WIN32) && (!defined(ZLIB_WIN32_NODLL)) && (!defined(ZLIB_DLL))
176# define ZLIB_DLL
177#endif
178
172/* Compile with -DZLIB_DLL for Windows DLL support */ 179/* Compile with -DZLIB_DLL for Windows DLL support */
173#if defined(ZLIB_DLL) 180#if defined(ZLIB_DLL)
174# if defined(_WINDOWS) || defined(WINDOWS) 181# if defined(_WINDOWS) || defined(WINDOWS) || defined(WIN32)
175# ifdef FAR 182# ifndef WINAPIV
176# undef FAR 183# ifdef FAR
184# undef FAR
185# endif
186# include <windows.h>
177# endif 187# endif
178# include <windows.h>
179# define ZEXPORT WINAPI
180# ifdef WIN32 188# ifdef WIN32
189# define ZEXPORT WINAPI
181# define ZEXPORTVA WINAPIV 190# define ZEXPORTVA WINAPIV
182# else 191# else
192# define ZEXPORT WINAPI _export
183# define ZEXPORTVA FAR _cdecl _export 193# define ZEXPORTVA FAR _cdecl _export
184# endif 194# endif
185# endif 195# endif
@@ -187,7 +197,7 @@
187# if (__BORLANDC__ >= 0x0500) && defined (WIN32) 197# if (__BORLANDC__ >= 0x0500) && defined (WIN32)
188# include <windows.h> 198# include <windows.h>
189# define ZEXPORT __declspec(dllexport) WINAPI 199# define ZEXPORT __declspec(dllexport) WINAPI
190# define ZEXPORTRVA __declspec(dllexport) WINAPIV 200# define ZEXPORTVA __declspec(dllexport) WINAPIV
191# else 201# else
192# if defined (_Windows) && defined (__DLL__) 202# if defined (_Windows) && defined (__DLL__)
193# define ZEXPORT _export 203# define ZEXPORT _export
@@ -246,9 +256,12 @@ typedef uLong FAR uLongf;
246 typedef Byte *voidp; 256 typedef Byte *voidp;
247#endif 257#endif
248 258
249#if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */ 259#if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */
250# include <sys/types.h> /* for off_t */ 260# include <sys/types.h> /* for off_t */
251# include <unistd.h> /* for SEEK_* and off_t */ 261# include <unistd.h> /* for SEEK_* and off_t */
262# ifdef VMS
263# include <unixio.h> /* for off_t */
264# endif
252# define z_off_t off_t 265# define z_off_t off_t
253#endif 266#endif
254#ifndef SEEK_SET 267#ifndef SEEK_SET