From 489891ff3c67a214798f30ee4a9c325020f714f6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 24 Feb 2020 18:17:23 -0800 Subject: [PATCH] Fix build on Windows and macOS with Qt 5.13 and earlier --- app/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/main.cpp b/app/main.cpp index 1ef8ccf3..e4ba06a8 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -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; }