summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-04-09 09:04:16 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-04-09 09:04:16 (GMT)
commit525077c24984e5680eafca81622f7ea338fee29a (patch)
treea4511f8dc3bdf4b897c25d73e9b02e9724a311de /tools
parent01400942b81d52652fde270b3267b7aba06dd3f1 (diff)
downloadQt-525077c24984e5680eafca81622f7ea338fee29a.zip
Qt-525077c24984e5680eafca81622f7ea338fee29a.tar.gz
Qt-525077c24984e5680eafca81622f7ea338fee29a.tar.bz2
fix compile on wince
Reviewed-by: joerg
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/shared/translator.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/linguist/shared/translator.cpp b/tools/linguist/shared/translator.cpp
index 465355d..0ca5103 100644
--- a/tools/linguist/shared/translator.cpp
+++ b/tools/linguist/shared/translator.cpp
@@ -45,8 +45,13 @@
#include <stdio.h>
#ifdef Q_OS_WIN
-#include <io.h> // required for _setmode, to avoid _O_TEXT streams...
-#include <fcntl.h> // for _O_BINARY
+// required for _setmode, to avoid _O_TEXT streams...
+# ifdef Q_OS_WINCE
+# include <stdlib.h>
+# else
+# include <io.h>
+# endif
+# include <fcntl.h> // for _O_BINARY
#endif
#include <QtCore/QDebug>