From f65f864f0ed53c7f9afc0f9ed155f81f9d7bbfc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 15 Jan 2021 18:03:44 +0100 Subject: [PATCH] Include for _rotl in MSVC --- include/boost/intrusive/detail/hash_combine.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/intrusive/detail/hash_combine.hpp b/include/boost/intrusive/detail/hash_combine.hpp index 6a13c8b..f074ce2 100644 --- a/include/boost/intrusive/detail/hash_combine.hpp +++ b/include/boost/intrusive/detail/hash_combine.hpp @@ -31,9 +31,10 @@ #include #if defined(_MSC_VER) -# define BOOST_INTRUSIVE_HASH_ROTL32(x, r) _rotl(x,r) +# include +# define BOOST_INTRUSIVE_HASH_ROTL32(x, r) _rotl(x,r) #else -# define BOOST_INTRUSIVE_HASH_ROTL32(x, r) (x << r) | (x >> (32 - r)) +# define BOOST_INTRUSIVE_HASH_ROTL32(x, r) (x << r) | (x >> (32 - r)) #endif namespace boost {