From cf6f574872714a35a56b468b16148c7302010941 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Sat, 11 Sep 2021 20:29:46 +0200 Subject: [PATCH] CLEANUP: Move XXH3 macro from haproxy/compat.h to haproxy/xxhash.h This moves all the xxhash functionality into a single location. see d5fc8fcb86eb99831626051b3055bea7ca93a074 --- include/haproxy/compat.h | 7 ------- include/haproxy/xxhash.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/haproxy/compat.h b/include/haproxy/compat.h index 72dc3dc4f..886b7a365 100644 --- a/include/haproxy/compat.h +++ b/include/haproxy/compat.h @@ -288,13 +288,6 @@ typedef struct { } empty_t; */ #define MAX_SEND_FD 253 -/* Make the new complex name for the xxhash function easier to remember - * and use. - */ -#ifndef XXH3 -#define XXH3(data, len, seed) XXH3_64bits_withSeed(data, len, seed) -#endif - #endif /* _HAPROXY_COMPAT_H */ /* diff --git a/include/haproxy/xxhash.h b/include/haproxy/xxhash.h index 83a2fb71c..cd333e645 100644 --- a/include/haproxy/xxhash.h +++ b/include/haproxy/xxhash.h @@ -42,4 +42,11 @@ #include +/* Make the new complex name for the xxhash function easier to remember + * and use. + */ +#ifndef XXH3 +#define XXH3(data, len, seed) XXH3_64bits_withSeed(data, len, seed) +#endif + #endif