Merge pull request #152 from YosysHQ/compile_fix

Fix compile on GCC 5.5 or older
This commit is contained in:
David Shah
2018-11-27 18:32:24 +00:00
committed by GitHub
+10
View File
@@ -84,4 +84,14 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi
NEXTPNR_NAMESPACE_END NEXTPNR_NAMESPACE_END
namespace std {
template <> struct hash<NEXTPNR_NAMESPACE_PREFIX LogLevel>
{
std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX LogLevel &loglevel) const noexcept
{
return std::hash<int>()((int)loglevel);
}
};
} // namespace std
#endif #endif