Fix build on Windows and macOS with Qt 5.13 and earlier

This commit is contained in:
Cameron Gutman 2020-02-24 18:17:23 -08:00
parent a44ed0b047
commit 489891ff3c

View file

@ -74,7 +74,12 @@ void logToLoggerStream(QString& message)
return;
}
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;
return;
}