aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/lz
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/lz
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 '')
-rw-r--r--src/liblzma/lz/lz_encoder_hash.h1
-rw-r--r--src/liblzma/lzma/fastpos.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/liblzma/lz/lz_encoder_hash.h b/src/liblzma/lz/lz_encoder_hash.h
index fb15c581..4d9971ae 100644
--- a/src/liblzma/lz/lz_encoder_hash.h
+++ b/src/liblzma/lz/lz_encoder_hash.h
@@ -17,6 +17,7 @@
// This is to make liblzma produce the same output on big endian
// systems that it does on little endian systems. lz_encoder.c
// takes care of including the actual table.
+ lzma_attr_visibility_hidden
extern const uint32_t lzma_lz_hash_table[256];
# define hash_table lzma_lz_hash_table
#else
diff --git a/src/liblzma/lzma/fastpos.h b/src/liblzma/lzma/fastpos.h
index cba442c2..dbeb16f7 100644
--- a/src/liblzma/lzma/fastpos.h
+++ b/src/liblzma/lzma/fastpos.h
@@ -91,6 +91,7 @@ get_dist_slot_2(uint32_t dist)
#define FASTPOS_BITS 13
+lzma_attr_visibility_hidden
extern const uint8_t lzma_fastpos[1 << FASTPOS_BITS];