summaryrefslogtreecommitdiff
path: root/zutil.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:33 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:33 -0700
commit0484693e1723bbab791c56f95597bd7dbe867d03 (patch)
tree8f31dbed98b4390da74a90b484f2accf8f8a3a8e /zutil.c
parent9811b53dd9e8f67015c7199fff12b5bfc6965330 (diff)
downloadzlib-0484693e1723bbab791c56f95597bd7dbe867d03.tar.gz
zlib 1.2.2.2v1.2.2.2
Diffstat (limited to 'zutil.c')
-rw-r--r--zutil.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/zutil.c b/zutil.c
index 6c08d13..868d42f 100644
--- a/zutil.c
+++ b/zutil.c
@@ -137,7 +137,10 @@ const char * ZEXPORT zError(err)
}
#if defined(_WIN32_WCE)
- /* does not exist on 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.
+ */
int errno = 0;
#endif