aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-10-17 21:53:11 +0300
committerJia Tan <jiat0218@gmail.com>2023-10-18 23:54:41 +0800
commit27735380491bb5ce0d0f41d5244d89c1d0825f6b (patch)
treeddc0f4a8e158d04315bad11c9737e13c0199d93a /src/liblzma/check
parentliblzma: Add include guards to crc_common.h. (diff)
downloadxz-27735380491bb5ce0d0f41d5244d89c1d0825f6b.tar.xz
liblzma: Include common.h in crc_common.h.
crc_common.h depends on common.h. The headers include common.h except when there is a reason to not do so.
Diffstat (limited to 'src/liblzma/check')
-rw-r--r--src/liblzma/check/crc_clmul.c1
-rw-r--r--src/liblzma/check/crc_common.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/liblzma/check/crc_clmul.c b/src/liblzma/check/crc_clmul.c
index 6ebb1232..404adb82 100644
--- a/src/liblzma/check/crc_clmul.c
+++ b/src/liblzma/check/crc_clmul.c
@@ -28,7 +28,6 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include "common.h"
#include "crc_common.h"
#include <immintrin.h>
diff --git a/src/liblzma/check/crc_common.h b/src/liblzma/check/crc_common.h
index 37535f4b..0dd4faec 100644
--- a/src/liblzma/check/crc_common.h
+++ b/src/liblzma/check/crc_common.h
@@ -16,6 +16,9 @@
#ifndef LZMA_CRC_COMMON_H
#define LZMA_CRC_COMMON_H
+#include "common.h"
+
+
#ifdef WORDS_BIGENDIAN
# define A(x) ((x) >> 24)
# define B(x) (((x) >> 16) & 0xFF)