From eb2bafc3d2b36f7bbb7012bee3a21bacb8cf50e2 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 31 Oct 2022 15:53:01 +0100 Subject: Add a few hacks to make it compile on Qt 5.12 again --- src/shared/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/shared') 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 #include +// 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); -- cgit v1.2.3-55-g7522