From: Yann Collet Date: Wed, 29 Jan 2025 17:56:38 +0000 (-0800) Subject: update version to employ XXH_NO_EXTERNC_GUARD X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fxxh083;p=thirdparty%2Fzstd.git update version to employ XXH_NO_EXTERNC_GUARD --- 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