From: Mark Adler Date: Sun, 12 Feb 2017 06:48:31 +0000 (-0800) Subject: Update use of errno for newer Windows CE versions. X-Git-Tag: v1.2.12~53 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=e1f1a3a1469c91b15ea1d31f1c2b92bdc27879fa;p=zlib.git Update use of errno for newer Windows CE versions. --- diff --git a/zutil.c b/zutil.c index a76c6b0..dcab28a 100644 --- a/zutil.c +++ b/zutil.c @@ -136,8 +136,8 @@ const char * ZEXPORT zError(err) return ERR_MSG(err); } -#if defined(_WIN32_WCE) - /* The Microsoft C Run-Time Library for Windows CE doesn't have +#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800 + /* The older 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. */