From f3f287e91d70b578e327643e9503ed73a7c82567 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 23 Jan 2022 01:36:50 +0100 Subject: [PATCH] use XXH_PRIVATE_API only when using system lib --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 58675c875..155ead7e0 100644 --- a/setup.py +++ b/setup.py @@ -222,6 +222,7 @@ libxxhash_prefix = setup_xxhash.xxhash_system_prefix(possible_libxxhash_prefixes if prefer_system_libxxhash and libxxhash_prefix: print('Detected and preferring libxxhash over bundled XXHASH') define_macros.append(('BORG_USE_LIBXXHASH', 'YES')) + define_macros.append(('XXH_PRIVATE_API', 'YES')) # do not use this for bundled zstd or xxh64, breaks the build libxxhash_system = True else: libxxhash_system = False