QCMake: use loadRelaxed if available

Added in 5.14 and load() was deprecated at the same time.
This commit is contained in:
Ben Boeckel
2020-06-15 07:12:49 -04:00
parent 6dc7c1f85d
commit 736fb34294

View File

@@ -340,7 +340,11 @@ void QCMake::interrupt()
bool QCMake::interruptCallback()
{
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
return this->InterruptFlag.load();
#else
return this->InterruptFlag.loadRelaxed();
#endif
}
void QCMake::progressCallback(const std::string& msg, float percent)