Include <stdlib.h> for _rotl in MSVC

This commit is contained in:
Ion Gaztañaga
2021-01-15 18:03:44 +01:00
parent 547c964381
commit f65f864f0e

View File

@@ -31,9 +31,10 @@
#include <boost/cstdint.hpp>
#if defined(_MSC_VER)
# define BOOST_INTRUSIVE_HASH_ROTL32(x, r) _rotl(x,r)
# include <stdlib.h>
# 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 {