From f176759fc41abc4cb901c2cbaa15264f2a9ac85b Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 9 Apr 2010 15:27:35 +0200 Subject: the _setmode() prototype is different on win ce ... both from windows and the wince doc ... Reviewed-by: joerg --- tools/linguist/shared/translator.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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)") -- cgit v0.12