From 749e277182ae06a4f7e15a5a868ffd2de4043c5c Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 28 Jan 2025 14:51:13 -0800 Subject: [PATCH] use macro instead of static function --- xxhash.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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