Fix build on Windows and macOS with Qt 5.13 and earlier
This commit is contained in:
parent
a44ed0b047
commit
489891ff3c
1 changed files with 6 additions and 1 deletions
|
|
@ -74,7 +74,12 @@ void logToLoggerStream(QString& message)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (s_LogLinesWritten == MAX_LOG_LINES) {
|
else if (s_LogLinesWritten == MAX_LOG_LINES) {
|
||||||
s_LoggerStream << "Log size limit reached!" << Qt::endl;
|
s_LoggerStream << "Log size limit reached!";
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||||
|
s_LoggerStream << Qt::endl;
|
||||||
|
#else
|
||||||
|
s_LoggerStream << endl;
|
||||||
|
#endif
|
||||||
s_LogLimitReached = true;
|
s_LogLimitReached = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue