mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-08-22 06:07:27 +02:00
Merge pull request #152 from YosysHQ/compile_fix
Fix compile on GCC 5.5 or older
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user