aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check/check.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-10-22 17:15:32 +0300
committerJia Tan <jiat0218@gmail.com>2023-10-31 18:44:59 +0800
commit33daad3961a4f07f3902b40f13e823e6e43e85da (patch)
treeb2dbde0181910dfebc1a8195d50ab64db839c0af /src/liblzma/check/check.h
parentliblzma: #define lzma_attr_visibility_hidden in common.h. (diff)
downloadxz-33daad3961a4f07f3902b40f13e823e6e43e85da.tar.xz
liblzma: Use lzma_attr_visibility_hidden on private extern declarations.
These variables are internal to liblzma and not exposed in the API.
Diffstat (limited to '')
-rw-r--r--src/liblzma/check/check.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/liblzma/check/check.h b/src/liblzma/check/check.h
index 783627bd..8ae95d59 100644
--- a/src/liblzma/check/check.h
+++ b/src/liblzma/check/check.h
@@ -99,10 +99,17 @@ typedef struct {
/// lzma_crc32_table[0] is needed by LZ encoder so we need to keep
/// the array two-dimensional.
#ifdef HAVE_SMALL
+lzma_attr_visibility_hidden
extern uint32_t lzma_crc32_table[1][256];
+
extern void lzma_crc32_init(void);
+
#else
+
+lzma_attr_visibility_hidden
extern const uint32_t lzma_crc32_table[8][256];
+
+lzma_attr_visibility_hidden
extern const uint64_t lzma_crc64_table[4][256];
#endif