aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-10-18 01:23:26 +0800
committerJia Tan <jiat0218@gmail.com>2023-10-18 23:54:41 +0800
commite13b7947b92355c334edd594295d3a2c99c4bca1 (patch)
tree21706c86604085c49370e2b2dac6be2489dff702 /src/liblzma/check
parentliblzma: Add the crc_always_inline macro to crc_simd_body(). (diff)
downloadxz-e13b7947b92355c334edd594295d3a2c99c4bca1.tar.xz
liblzma: Add include guards to crc_common.h.
Diffstat (limited to '')
-rw-r--r--src/liblzma/check/crc_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/liblzma/check/crc_common.h b/src/liblzma/check/crc_common.h
index 7aef383c..37535f4b 100644
--- a/src/liblzma/check/crc_common.h
+++ b/src/liblzma/check/crc_common.h
@@ -13,6 +13,9 @@
//
///////////////////////////////////////////////////////////////////////////////
+#ifndef LZMA_CRC_COMMON_H
+#define LZMA_CRC_COMMON_H
+
#ifdef WORDS_BIGENDIAN
# define A(x) ((x) >> 24)
# define B(x) (((x) >> 16) & 0xFF)
@@ -104,3 +107,5 @@ extern uint32_t lzma_crc32_clmul(const uint8_t *buf, size_t size,
/// CRC64 implemented with the x86 CLMUL instruction.
extern uint64_t lzma_crc64_clmul(const uint8_t *buf, size_t size,
uint64_t crc);
+
+#endif