summaryrefslogtreecommitdiff
path: root/lib/zlib/include/zutil.h
diff options
context:
space:
mode:
authorpixel <pixel>2005-10-13 16:12:18 +0000
committerpixel <pixel>2005-10-13 16:12:18 +0000
commit32ae837d333bfeab34bbb3bbfac90eb0c78ada6f (patch)
tree5af2a2142ed36d9dd8303d69f8da78b61a28cbab /lib/zlib/include/zutil.h
parent0b7cc6372fd55d7f97122db97f6f8a2f5ef33809 (diff)
Updating zlib to 1.2.3.
Diffstat (limited to 'lib/zlib/include/zutil.h')
-rw-r--r--lib/zlib/include/zutil.h32
1 files changed, 19 insertions, 13 deletions
diff --git a/lib/zlib/include/zutil.h b/lib/zlib/include/zutil.h
index da4f660..b4348dc 100644
--- a/lib/zlib/include/zutil.h
+++ b/lib/zlib/include/zutil.h
@@ -1,5 +1,5 @@
/* zutil.h -- internal interface and configuration of the compression library
- * Copyright (C) 1995-2003 Jean-loup Gailly.
+ * Copyright (C) 1995-2005 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
@@ -8,7 +8,7 @@
subject to change. Applications should only use zlib.h.
*/
-/* @(#) $Id: zutil.h,v 1.4 2005-06-06 11:16:15 pixel Exp $ */
+/* @(#) $Id: zutil.h,v 1.5 2005-10-13 16:12:18 pixel Exp $ */
#ifndef ZUTIL_H
#define ZUTIL_H
@@ -17,14 +17,26 @@
#include "zlib.h"
#ifdef STDC
-# include <stddef.h>
+# ifndef _WIN32_WCE
+# include <stddef.h>
+# endif
# include <string.h>
# include <stdlib.h>
#endif
#ifdef NO_ERRNO_H
+# ifdef _WIN32_WCE
+ /* The Microsoft C Run-Time Library for Windows CE doesn't have
+ * errno. We define it as a global variable to simplify porting.
+ * Its value is always 0 and should not be used. We rename it to
+ * avoid conflict with other libraries that use the same workaround.
+ */
+# define errno z_errno
+# endif
extern int errno;
#else
-# include <errno.h>
+# ifndef _WIN32_WCE
+# include <errno.h>
+# endif
#endif
#ifndef local
@@ -105,6 +117,9 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
#ifdef OS2
# define OS_CODE 0x06
+# ifdef M_I86
+ #include <malloc.h>
+# endif
#endif
#if defined(MACOS) || defined(TARGET_OS_MAC)
@@ -193,15 +208,6 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
# define NO_vsnprintf
#endif
-#ifdef HAVE_STRERROR
-# ifndef VMS
- extern char *strerror OF((int));
-# endif
-# define zstrerror(errnum) strerror(errnum)
-#else
-# define zstrerror(errnum) ""
-#endif
-
#if defined(pyr)
# define NO_MEMCPY
#endif