summaryrefslogtreecommitdiffstats
path: root/src/shared/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index c25f778..2637419 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -11,6 +11,11 @@
#include <QByteArray>
#include <QRandomGenerator>
+// Remove after we drop Ubuntu 20.04
+#if QT_VERSION < QT_VERSION_CHECK(5,15,0)
+#define errorOccurred error
+#endif
+
#define slxrand() (QRandomGenerator::system()->generate())
QByteArray genSha1(const QByteArray *a, const QByteArray *b = nullptr, const QByteArray *c = nullptr, const QByteArray *d = nullptr, const QByteArray *e = nullptr);