mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Fix build on Windows and macOS with Qt 5.13 and earlier
This commit is contained in:
parent
a44ed0b047
commit
489891ff3c
@ -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…
x
Reference in New Issue
Block a user