diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-09 18:28:58 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-09 18:30:53 +0300 |
commit | 28154eeaf6e3442cd1e174f4e81266d60c4dac60 (patch) | |
tree | ccfb6b7cf00a96977c1698ef026e930670357071 /src/liblzma | |
parent | liblzma: Fix a memory leak in stream_encoder.c. (diff) | |
download | xz-28154eeaf6e3442cd1e174f4e81266d60c4dac60.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/common/filter_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liblzma/common/filter_common.c b/src/liblzma/common/filter_common.c index b157c628..7c95b05f 100644 --- a/src/liblzma/common/filter_common.c +++ b/src/liblzma/common/filter_common.c @@ -43,7 +43,7 @@ static const struct { .changes_size = true, }, #endif -#ifdef HAVE_DECODER_LZMA2 +#if defined(HAVE_ENCODER_LZMA2) || defined(HAVE_DECODER_LZMA2) { .id = LZMA_FILTER_LZMA2, .options_size = sizeof(lzma_options_lzma), @@ -52,7 +52,7 @@ static const struct { .changes_size = true, }, #endif -#ifdef HAVE_DECODER_X86 +#if defined(HAVE_ENCODER_X86) || defined(HAVE_DECODER_X86) { .id = LZMA_FILTER_X86, .options_size = sizeof(lzma_options_bcj), @@ -70,7 +70,7 @@ static const struct { .changes_size = false, }, #endif -#ifdef HAVE_DECODER_IA64 +#if defined(HAVE_ENCODER_IA64) || defined(HAVE_DECODER_IA64) { .id = LZMA_FILTER_IA64, .options_size = sizeof(lzma_options_bcj), |