diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-25 18:04:37 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-25 18:04:37 +0200 |
commit | 90caaded2dc6db1d6a55b01160d7e87f4a423628 (patch) | |
tree | 51be01fed8e7ad180d4c732eaca6e33ff71fe155 /src/liblzma/simple/sparc.c | |
parent | xz: Allow nice_len 2 and 3 even if match finder requires 3 or 4. (diff) | |
download | xz-90caaded2dc6db1d6a55b01160d7e87f4a423628.tar.xz |
liblzma: Omit simple coder init functions if they are disabled.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/simple/sparc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/liblzma/simple/sparc.c b/src/liblzma/simple/sparc.c index 74b2655f..bad8492e 100644 --- a/src/liblzma/simple/sparc.c +++ b/src/liblzma/simple/sparc.c @@ -65,6 +65,7 @@ sparc_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, } +#ifdef HAVE_ENCODER_SPARC extern lzma_ret lzma_simple_sparc_encoder_init(lzma_next_coder *next, const lzma_allocator *allocator, @@ -72,8 +73,10 @@ lzma_simple_sparc_encoder_init(lzma_next_coder *next, { return sparc_coder_init(next, allocator, filters, true); } +#endif +#ifdef HAVE_DECODER_SPARC extern lzma_ret lzma_simple_sparc_decoder_init(lzma_next_coder *next, const lzma_allocator *allocator, @@ -81,3 +84,4 @@ lzma_simple_sparc_decoder_init(lzma_next_coder *next, { return sparc_coder_init(next, allocator, filters, false); } +#endif |