summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorAndreas Holzammer <andreas.holzammer@kdab.com>2012-02-10 11:27:00 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-27 09:07:19 +0100
commit2fa9c829faae10f445fd580627114a8383b753ab (patch)
treece145af492550fc9a006e497c46fe6d70dc6b9d9 /src/corelib
parent203a8d8333c8be8412289537efd490b8da0425b2 (diff)
downloadqt4-tools-2fa9c829faae10f445fd580627114a8383b753ab.tar.gz
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/corelib')
-rw-r--r--src/corelib/kernel/qfunctions_wince.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/corelib/kernel/qfunctions_wince.h b/src/corelib/kernel/qfunctions_wince.h
index 2ce82cf3b0..38721138c5 100644
--- a/src/corelib/kernel/qfunctions_wince.h
+++ b/src/corelib/kernel/qfunctions_wince.h
@@ -188,6 +188,16 @@ void qt_wince_rewind( FILE *stream );
int qt_wince___fileno(FILE *);
FILE *qt_wince_tmpfile( void );
+//For zlib we need these helper functions, but they break the build when
+//set globally, so just set them for zlib use
+#ifdef ZLIB_H
+#define open qt_wince_open
+#define close qt_wince__close
+#define lseek qt_wince__lseek
+#define read qt_wince__read
+#define write qt_wince__write
+#endif
+
int qt_wince__mkdir(const char *dirname);
int qt_wince__rmdir(const char *dirname);
int qt_wince__access( const char *path, int pmode );