From 10830e844683c75d96c024450b4b7a624d8d6d8f Mon Sep 17 00:00:00 2001 From: Andreas Holzammer Date: Fri, 10 Feb 2012 11:27:00 +0100 Subject: Fixed zlib build for WEC7. errno in zutil.c is leftover, and not used anymore -> removed. In gzguts.h qfunctions_wince.h are included. To use this header qglobal.h is needed. In qfunctions_wince.h a special define section is added for zlib. Task-number: QTBUG-22507 Change-Id: I78ec78d22e2930a03b349a47ab3a3ad077277c42 Reviewed-by: Miikka Heikkinen Reviewed-by: Friedemann Kleint --- src/3rdparty/zlib/gzguts.h | 9 +++++++-- src/3rdparty/zlib/zutil.c | 8 -------- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'src/3rdparty') diff --git a/src/3rdparty/zlib/gzguts.h b/src/3rdparty/zlib/gzguts.h index c752b5763b..26b4d37c1d 100644 --- a/src/3rdparty/zlib/gzguts.h +++ b/src/3rdparty/zlib/gzguts.h @@ -32,7 +32,10 @@ # include #endif #if !defined(_WIN32_WCE) -#include +# include +#else +# include +# include #endif #ifdef NO_DEFLATE /* for compatibility with old definition */ @@ -40,7 +43,9 @@ #endif #ifdef _MSC_VER -# include +# if !defined(_WIN32_WCE) +# include +# endif # define vsnprintf _vsnprintf #endif diff --git a/src/3rdparty/zlib/zutil.c b/src/3rdparty/zlib/zutil.c index 898ed345b0..3418c5999f 100644 --- a/src/3rdparty/zlib/zutil.c +++ b/src/3rdparty/zlib/zutil.c @@ -136,14 +136,6 @@ 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 - * 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 - #ifndef HAVE_MEMCPY void ZLIB_INTERNAL zmemcpy(dest, source, len) -- cgit v1.2.3