From 13a294f044ef0a89b2dcbfbb5d4d4c792673348e Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:21:57 -0700 Subject: zlib 1.2.0.1 --- zconf.h | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'zconf.h') diff --git a/zconf.h b/zconf.h index 8ef845e..f3c4430 100644 --- a/zconf.h +++ b/zconf.h @@ -91,7 +91,7 @@ #ifndef STDC # ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ -# define const /* note: need a more gentle solution here */ +# define const /* note: need a more gentle solution here */ # endif #endif @@ -101,7 +101,10 @@ #endif /* Old Borland C incorrectly complains about missing returns: */ -#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500) +#if defined(__BORLANDC__) && (__BORLANDC__ < 0x460) +# define NEED_DUMMY_RETURN +#endif +#if defined(__TURBOC__) && !defined(__BORLANDC__) # define NEED_DUMMY_RETURN #endif @@ -169,17 +172,24 @@ # endif #endif +#if defined(WIN32) && (!defined(ZLIB_WIN32_NODLL)) && (!defined(ZLIB_DLL)) +# define ZLIB_DLL +#endif + /* Compile with -DZLIB_DLL for Windows DLL support */ #if defined(ZLIB_DLL) -# if defined(_WINDOWS) || defined(WINDOWS) -# ifdef FAR -# undef FAR +# if defined(_WINDOWS) || defined(WINDOWS) || defined(WIN32) +# ifndef WINAPIV +# ifdef FAR +# undef FAR +# endif +# include # endif -# include -# define ZEXPORT WINAPI # ifdef WIN32 +# define ZEXPORT WINAPI # define ZEXPORTVA WINAPIV # else +# define ZEXPORT WINAPI _export # define ZEXPORTVA FAR _cdecl _export # endif # endif @@ -187,7 +197,7 @@ # if (__BORLANDC__ >= 0x0500) && defined (WIN32) # include # define ZEXPORT __declspec(dllexport) WINAPI -# define ZEXPORTRVA __declspec(dllexport) WINAPIV +# define ZEXPORTVA __declspec(dllexport) WINAPIV # else # if defined (_Windows) && defined (__DLL__) # define ZEXPORT _export @@ -246,9 +256,12 @@ typedef uLong FAR uLongf; typedef Byte *voidp; #endif -#if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */ +#if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */ # include /* for off_t */ # include /* for SEEK_* and off_t */ +# ifdef VMS +# include /* for off_t */ +# endif # define z_off_t off_t #endif #ifndef SEEK_SET -- cgit v1.2.3-55-g6feb