forked from boostorg/intrusive
Include <stdlib.h> for _rotl in MSVC
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
#include <boost/cstdint.hpp>
|
#include <boost/cstdint.hpp>
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
|
# include <stdlib.h>
|
||||||
# define BOOST_INTRUSIVE_HASH_ROTL32(x, r) _rotl(x,r)
|
# define BOOST_INTRUSIVE_HASH_ROTL32(x, r) _rotl(x,r)
|
||||||
#else
|
#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))
|
||||||
|
Reference in New Issue
Block a user