From: Tim Duesterhus Date: Sat, 11 Sep 2021 18:29:46 +0000 (+0200) Subject: CLEANUP: Move XXH3 macro from haproxy/compat.h to haproxy/xxhash.h X-Git-Tag: v2.5-dev7~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf6f574872714a35a56b468b16148c7302010941;p=thirdparty%2Fhaproxy.git CLEANUP: Move XXH3 macro from haproxy/compat.h to haproxy/xxhash.h This moves all the xxhash functionality into a single location. see d5fc8fcb86eb99831626051b3055bea7ca93a074 --- diff --git a/include/haproxy/compat.h b/include/haproxy/compat.h index 72dc3dc4f9..886b7a3650 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 83a2fb71c5..cd333e645e 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