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