aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-10-22 17:15:32 +0300
committerLasse Collin <lasse.collin@tukaani.org>2023-10-30 18:06:25 +0200
commit41113fe30a47f6fd3e30cb4494dd538e86212edf (patch)
treef368de671e2acd7d2eacedb0b1c463fa0da93f2f /src/liblzma/check
parentliblzma: #define lzma_attr_visibility_hidden in common.h. (diff)
downloadxz-41113fe30a47f6fd3e30cb4494dd538e86212edf.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 'src/liblzma/check')
-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