From e8537a218881337633b6d80d17d9fcab34769bac Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Tue, 17 Jan 2017 14:29:42 +0100 Subject: [PATCH] make zlib build correctly again with newer Windows CE versions --- Foundation/src/zutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/src/zutil.c b/Foundation/src/zutil.c index 56534fba0..d6df5ff08 100644 --- a/Foundation/src/zutil.c +++ b/Foundation/src/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. */