diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-01-05 20:57:25 +0800 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-09 16:37:19 +0200 |
commit | 692ccdf5516dfe55fb6e9c5cdfb31f4c02c1ecd1 (patch) | |
tree | 6b1499996b9f1e99db43c95adc4b972f649443f0 /src/liblzma/common/index_decoder.h | |
parent | liblzma: Add NULL check to lzma_index_hash_append. (diff) | |
download | xz-692ccdf5516dfe55fb6e9c5cdfb31f4c02c1ecd1.tar.xz |
liblzma: Remove common.h include from common/index.h.
common/index.h is needed by liblzma internally and tests. common.h will
include and define many things that are not needed by the tests.
Also, this prevents include order problems because both common.h and
lzma.h define LZMA_API. On most platforms it results only in a warning
but on Windows it would break the build as the definition in common.h
must be used only for building liblzma itself.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/common/index_decoder.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liblzma/common/index_decoder.h b/src/liblzma/common/index_decoder.h index 1af433b5..3fec4833 100644 --- a/src/liblzma/common/index_decoder.h +++ b/src/liblzma/common/index_decoder.h @@ -13,6 +13,7 @@ #ifndef LZMA_INDEX_DECODER_H #define LZMA_INDEX_DECODER_H +#include "common.h" #include "index.h" |