diff --git a/xxhash.h b/xxhash.h index fbbb66ec..f751d59d 100644 --- a/xxhash.h +++ b/xxhash.h @@ -2419,16 +2419,13 @@ static void* XXH_memset(void* dest, int value, size_t size) #endif #ifndef XXH_memcmp -/* Note: only needed by XXH128 */ -# include /*! * @internal * @brief XXH_memcmp() macro can be redirected at compile time + * Note: only needed by XXH128. */ -static int XXH_memcmp(void* dest, const void* src, size_t size) -{ - return memcmp(dest,src,size); -} +# include +# define XXH_memcmp memcmp #endif