From ee01de7d0443aaf8198f3cc68a6be58998eb68f6 Mon Sep 17 00:00:00 2001
From: Cheng Shao <terrorjack@type.dance>
Date: Mon, 12 Feb 2024 15:14:01 +0000
Subject: [PATCH] rts: define XXH_INLINE_ALL

This commit cleans up how we include the xxhash.h header and only
define XXH_INLINE_ALL, which is sufficient to inline the xxHash
functions without symbol collision.
---
 rts/Hash.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/rts/Hash.c b/rts/Hash.c
index e505d04fa041..7139c9e01b0c 100644
--- a/rts/Hash.c
+++ b/rts/Hash.c
@@ -26,9 +26,7 @@
 #endif
 #endif
 
-#define XXH_NAMESPACE __rts_
-#define XXH_STATIC_LINKING_ONLY   /* access advanced declarations */
-#define XXH_IMPLEMENTATION   /* access definitions */
+#define XXH_INLINE_ALL
 
 #include "xxhash.h"
 
-- 
GitLab