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 <import/xxhash.h>
+/* 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
--
2.33.0