liblzma: Add include guards to crc_common.h.

This commit is contained in:
Jia Tan 2023-10-18 01:23:26 +08:00
parent 40abd88afc
commit e13b7947b9
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,9 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_CRC_COMMON_H
#define LZMA_CRC_COMMON_H
#ifdef WORDS_BIGENDIAN #ifdef WORDS_BIGENDIAN
# define A(x) ((x) >> 24) # define A(x) ((x) >> 24)
# define B(x) (((x) >> 16) & 0xFF) # 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. /// CRC64 implemented with the x86 CLMUL instruction.
extern uint64_t lzma_crc64_clmul(const uint8_t *buf, size_t size, extern uint64_t lzma_crc64_clmul(const uint8_t *buf, size_t size,
uint64_t crc); uint64_t crc);
#endif