From b7f07140cbe020a90f553cbd00fbcd9c35115579 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Wed, 6 Jan 2021 20:22:52 +1100 Subject: Attempt to fix build failures Also get rid of a warning --- src/cachehandler.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/cachehandler.hpp') diff --git a/src/cachehandler.hpp b/src/cachehandler.hpp index ca782bb..74f61a2 100644 --- a/src/cachehandler.hpp +++ b/src/cachehandler.hpp @@ -4,8 +4,27 @@ #include "mimeparser.hpp" #include #include + #include +#include #include +#include + +// Need a QString hash implementation for Qt versions below 5.14 +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) +#include +namespace std +{ + template<> + struct hash + { + std::size_t operator()(const QString& s) const noexcept + { + return (size_t)qHash(s); + } + }; +} +#endif struct CachedPage { -- cgit v1.2.3