From b792878c0c7a1418571c2020a7773b8cc016cc25 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. (cherry picked from commit ee01de7d0443aaf8198f3cc68a6be58998eb68f6) (cherry picked from commit 2c52e59bf161ac20c159dcc88bb89f860be8b35b) --- rts/Hash.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rts/Hash.c b/rts/Hash.c index 2feba0b6755..56cae6bfd09 100644 --- a/rts/Hash.c +++ b/rts/Hash.c @@ -24,9 +24,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