diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 357c164baea..48d0cac10e3 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1218,7 +1218,7 @@ void QMessagePattern::setPattern(const QString &pattern) #if defined(Q_OS_WINRT) OutputDebugString(reinterpret_cast(error.utf16())); if (0) -#elif defined(Q_OS_WIN) && defined(QT_BUILD_CORE_LIB) +#elif defined(Q_OS_WIN) && !defined(QT_BOOTSTRAPPED) if (!qt_logging_to_console()) { OutputDebugString(reinterpret_cast(error.utf16())); } else