mirror of https://git.tukaani.org/xz.git
liblzma: Add missing #ifdefs to filter_common.c.
Passing --disable-decoders to configure broke a few encoders due to missing #ifdefs in filter_common.c. Thanks to Jason Gorski for the patch.
This commit is contained in:
parent
b03f6cd3eb
commit
fca396b374
|
@ -43,7 +43,7 @@ static const struct {
|
||||||
.changes_size = true,
|
.changes_size = true,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_DECODER_LZMA2
|
#if defined(HAVE_ENCODER_LZMA2) || defined(HAVE_DECODER_LZMA2)
|
||||||
{
|
{
|
||||||
.id = LZMA_FILTER_LZMA2,
|
.id = LZMA_FILTER_LZMA2,
|
||||||
.options_size = sizeof(lzma_options_lzma),
|
.options_size = sizeof(lzma_options_lzma),
|
||||||
|
@ -52,7 +52,7 @@ static const struct {
|
||||||
.changes_size = true,
|
.changes_size = true,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_DECODER_X86
|
#if defined(HAVE_ENCODER_X86) || defined(HAVE_DECODER_X86)
|
||||||
{
|
{
|
||||||
.id = LZMA_FILTER_X86,
|
.id = LZMA_FILTER_X86,
|
||||||
.options_size = sizeof(lzma_options_bcj),
|
.options_size = sizeof(lzma_options_bcj),
|
||||||
|
@ -70,7 +70,7 @@ static const struct {
|
||||||
.changes_size = false,
|
.changes_size = false,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_DECODER_IA64
|
#if defined(HAVE_ENCODER_IA64) || defined(HAVE_DECODER_IA64)
|
||||||
{
|
{
|
||||||
.id = LZMA_FILTER_IA64,
|
.id = LZMA_FILTER_IA64,
|
||||||
.options_size = sizeof(lzma_options_bcj),
|
.options_size = sizeof(lzma_options_bcj),
|
||||||
|
|
Loading…
Reference in New Issue