diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-04-09 13:27:35 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-04-09 13:29:53 (GMT) |
commit | f176759fc41abc4cb901c2cbaa15264f2a9ac85b (patch) | |
tree | ff9120a7a7ac45427047e9f0c0c63bba1f81da5a /tools/linguist/shared | |
parent | 0bd75b67bc23d51670822305a31e19a74ca7134e (diff) | |
download | Qt-f176759fc41abc4cb901c2cbaa15264f2a9ac85b.zip Qt-f176759fc41abc4cb901c2cbaa15264f2a9ac85b.tar.gz Qt-f176759fc41abc4cb901c2cbaa15264f2a9ac85b.tar.bz2 |
the _setmode() prototype is different on win ce
... both from windows and the wince doc ...
Reviewed-by: joerg
Diffstat (limited to 'tools/linguist/shared')
-rw-r--r-- | tools/linguist/shared/translator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/linguist/shared/translator.cpp b/tools/linguist/shared/translator.cpp index ae7728e..826004e 100644 --- a/tools/linguist/shared/translator.cpp +++ b/tools/linguist/shared/translator.cpp @@ -218,7 +218,11 @@ bool Translator::load(const QString &filename, ConversionData &cd, const QString if (filename.isEmpty() || filename == QLatin1String("-")) { #ifdef Q_OS_WIN // QFile is broken for text files +# ifdef Q_OS_WINCE + ::_setmode(stdin, _O_BINARY); +# else ::_setmode(0, _O_BINARY); +# endif #endif if (!file.open(stdin, QIODevice::ReadOnly)) { cd.appendError(QString::fromLatin1("Cannot open stdin!? (%1)") |