Skip to content

Commit 46003d8

Browse files
committed
update version to employ XXH_NO_EXTERNC_GUARD
1 parent 46f81fb commit 46003d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/common/xxhash.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#define XXH_memcpy ZSTD_memcpy
2424
#define XXH_memset ZSTD_memset
2525

26+
2627
/*!
2728
* @mainpage xxHash
2829
*
@@ -231,7 +232,7 @@
231232
* xxHash prototypes and implementation
232233
*/
233234

234-
#if defined (__cplusplus)
235+
#if defined(__cplusplus) && !defined(XXH_NO_EXTERNC_GUARD)
235236
extern "C" {
236237
#endif
237238

@@ -7328,6 +7329,6 @@ XXH3_generateSecret_fromSeed(XXH_NOESCAPE void* secretBuffer, XXH64_hash_t seed)
73287329
#endif /* XXH_IMPLEMENTATION */
73297330

73307331

7331-
#if defined (__cplusplus)
7332+
#if defined (__cplusplus) && !defined(XXH_NO_EXTERNC_GUARD)
73327333
} /* extern "C" */
73337334
#endif

0 commit comments

Comments
 (0)