From 46003d8e74324fba9b9871a8f1ed6c08ccdf74cf Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 29 Jan 2025 09:56:38 -0800 Subject: [PATCH] update version to employ XXH_NO_EXTERNC_GUARD --- lib/common/xxhash.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/common/xxhash.h b/lib/common/xxhash.h index 2ef260444..210f04128 100644 --- a/lib/common/xxhash.h +++ b/lib/common/xxhash.h @@ -23,6 +23,7 @@ #define XXH_memcpy ZSTD_memcpy #define XXH_memset ZSTD_memset + /*! * @mainpage xxHash * @@ -231,7 +232,7 @@ * xxHash prototypes and implementation */ -#if defined (__cplusplus) +#if defined(__cplusplus) && !defined(XXH_NO_EXTERNC_GUARD) extern "C" { #endif @@ -7328,6 +7329,6 @@ XXH3_generateSecret_fromSeed(XXH_NOESCAPE void* secretBuffer, XXH64_hash_t seed) #endif /* XXH_IMPLEMENTATION */ -#if defined (__cplusplus) +#if defined (__cplusplus) && !defined(XXH_NO_EXTERNC_GUARD) } /* extern "C" */ #endif -- 2.47.2