Fix redefinition error in mmh3_hash.h.

This commit is contained in:
Alex Shvartzkop 2024-06-25 01:15:47 +03:00
parent 441da8dfb6
commit bee70bca7f
1 changed files with 2 additions and 2 deletions

View File

@ -44,11 +44,11 @@
// Other compilers
#else // defined(_MSC_VER)
#define FORCE_INLINE inline __attribute__( ( always_inline ) )
inline uint64_t rotl64( uint64_t x, int8_t r )
inline uint64_t mmh3_rotl64( uint64_t x, int8_t r )
{
return ( x << r ) | ( x >> ( 64 - r ) );
}
#define ROTL64( x, y ) rotl64( x, y )
#define ROTL64( x, y ) mmh3_rotl64( x, y )
#define BIG_CONSTANT( x ) ( x##LLU )
#endif // !defined(_MSC_VER)