X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=pv%2Fdata%2Fdecode%2Frowdata.hpp;h=ab109001bd96d72441f5f0bff45a150e9266d861;hb=04b0467582d8dfa989bb38fe18bfb1be20cea456;hp=ff59d31a0f18d4767f5a3fb946b0a3e839777721;hpb=88a2597864920ecdbe66cf0cd4b8172bdabb2263;p=pulseview.git diff --git a/pv/data/decode/rowdata.hpp b/pv/data/decode/rowdata.hpp index ff59d31a..ab109001 100644 --- a/pv/data/decode/rowdata.hpp +++ b/pv/data/decode/rowdata.hpp @@ -23,6 +23,7 @@ #include #include +#include #include #include @@ -33,13 +34,15 @@ using std::deque; using std::unordered_map; +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) namespace std { - template<> struct hash { - std::size_t operator()(const QString& s) const noexcept { - return (size_t) qHash(s); - } - }; + template<> struct hash { + std::size_t operator()(const QString& s) const noexcept { + return (size_t) qHash(s); + } + }; } +#endif namespace pv { namespace data {