]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Add include guards to crc_common.h.
authorJia Tan <jiat0218@gmail.com>
Tue, 17 Oct 2023 17:23:26 +0000 (01:23 +0800)
committerJia Tan <jiat0218@gmail.com>
Wed, 18 Oct 2023 15:54:41 +0000 (23:54 +0800)
src/liblzma/check/crc_common.h

index 7aef383c4a523f5ba63834d29504a1293bfa3783..37535f4be93a2c6f0fdf7ed4d31a23e8c2f9a400 100644 (file)
@@ -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