aboutsummaryrefslogtreecommitdiff
path: root/zutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'zutil.h')
-rw-r--r--zutil.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/zutil.h b/zutil.h
index 579e9fc..5209d65 100644
--- a/zutil.h
+++ b/zutil.h
@@ -22,6 +22,14 @@
22# include <stdlib.h> 22# include <stdlib.h>
23#endif 23#endif
24#ifdef NO_ERRNO_H 24#ifdef NO_ERRNO_H
25# ifdef _WIN32_WCE
26 /* The Microsoft C Run-Time Library for Windows CE doesn't have
27 * errno. We define it as a global variable to simplify porting.
28 * Its value is always 0 and should not be used. We rename it to
29 * avoid conflict with other libraries that use the same workaround.
30 */
31# define errno z_errno
32# endif
25 extern int errno; 33 extern int errno;
26#else 34#else
27# include <errno.h> 35# include <errno.h>
@@ -193,15 +201,6 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
193# define NO_vsnprintf 201# define NO_vsnprintf
194#endif 202#endif
195 203
196#ifdef HAVE_STRERROR
197# ifndef VMS
198 extern char *strerror OF((int));
199# endif
200# define zstrerror(errnum) strerror(errnum)
201#else
202# define zstrerror(errnum) ""
203#endif
204
205#if defined(pyr) 204#if defined(pyr)
206# define NO_MEMCPY 205# define NO_MEMCPY
207#endif 206#endif