]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
update version to employ XXH_NO_EXTERNC_GUARD xxh083 4273/head
authorYann Collet <cyan@fb.com>
Wed, 29 Jan 2025 17:56:38 +0000 (09:56 -0800)
committerYann Collet <cyan@fb.com>
Fri, 28 Feb 2025 21:49:47 +0000 (13:49 -0800)
lib/common/xxhash.h

index 2ef2604445c7bd4ba5c8e75a3c92cd014066d1a4..210f04128bac6a91b8f3e4ef734e2f88df3a34da 100644 (file)
@@ -23,6 +23,7 @@
 #define XXH_memcpy ZSTD_memcpy
 #define XXH_memset ZSTD_memset
 
+
 /*!
  * @mainpage xxHash
  *
  * 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