diff options
Diffstat (limited to 'cpp/src/Ice/LoggerI.cpp')
-rw-r--r-- | cpp/src/Ice/LoggerI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/LoggerI.cpp b/cpp/src/Ice/LoggerI.cpp index b5e599cc638..fa39ff9e21d 100644 --- a/cpp/src/Ice/LoggerI.cpp +++ b/cpp/src/Ice/LoggerI.cpp @@ -197,7 +197,7 @@ Ice::LoggerI::write(const string& message, bool indent) } else { -#ifndef _WIN32 +#if !defined(_WIN32) || defined(ICE_OS_WINRT) cerr << s << endl; #else // @@ -225,8 +225,8 @@ Ice::LoggerI::write(const string& message, bool indent) // We cannot use cerr here as writing to console using cerr // will do its own conversion and will corrupt the messages. // - fprintf_s(stderr, "%s\n", UTF8ToCodePage(IceUtil::nativeToUTF8(_converter, s), - GetConsoleOutputCP()).c_str()); + fprintf_s(stderr, "%s\n", UTF8ToCodePage(IceUtil::nativeToUTF8(_converter, s), + GetConsoleOutputCP()).c_str()); } catch(const IceUtil::IllegalConversionException&) { |