diff options
author | Andreas Holzammer <andreas.holzammer@kdab.com> | 2012-02-10 10:27:00 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-27 08:07:19 (GMT) |
commit | 2fa9c829faae10f445fd580627114a8383b753ab (patch) | |
tree | ce145af492550fc9a006e497c46fe6d70dc6b9d9 /src/3rdparty/zlib/gzguts.h | |
parent | 203a8d8333c8be8412289537efd490b8da0425b2 (diff) | |
download | Qt-2fa9c829faae10f445fd580627114a8383b753ab.zip Qt-2fa9c829faae10f445fd580627114a8383b753ab.tar.gz Qt-2fa9c829faae10f445fd580627114a8383b753ab.tar.bz2 |
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 <miikka.heikkinen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
(cherry picked from commit 10830e844683c75d96c024450b4b7a624d8d6d8f)
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Diffstat (limited to 'src/3rdparty/zlib/gzguts.h')
-rw-r--r-- | src/3rdparty/zlib/gzguts.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/3rdparty/zlib/gzguts.h b/src/3rdparty/zlib/gzguts.h index 9f9640b..9e4368e 100644 --- a/src/3rdparty/zlib/gzguts.h +++ b/src/3rdparty/zlib/gzguts.h @@ -36,7 +36,10 @@ # include <limits.h> #endif #if !defined(_WIN32_WCE) -#include <fcntl.h> +# include <fcntl.h> +#else +# include <qglobal.h> +# include <qfunctions_wince.h> #endif #ifdef NO_DEFLATE /* for compatibility with old definition */ @@ -44,7 +47,9 @@ #endif #ifdef _MSC_VER -# include <io.h> +# if !defined(_WIN32_WCE) +# include <io.h> +# endif # define vsnprintf _vsnprintf #endif |