mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Fix CRC code in case --enable-small is used.
This commit is contained in:
parent
949d4346e2
commit
78e85cb1a7
5 changed files with 4 additions and 6 deletions
|
@ -13,7 +13,7 @@
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "sysdefs.h"
|
||||
# include "check.h"
|
||||
#endif
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "sysdefs.h"
|
||||
# include "check.h"
|
||||
#endif
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
|
|
|
@ -25,9 +25,7 @@ lzma_init_decoder(void)
|
|||
{
|
||||
// So far there's no decoder-specific stuff to initialize.
|
||||
|
||||
#ifdef HAVE_CHECK
|
||||
lzma_init_check();
|
||||
#endif
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -29,9 +29,7 @@ lzma_init_encoder(void)
|
|||
if (already_initialized)
|
||||
return;
|
||||
|
||||
#ifdef HAVE_CHECK
|
||||
lzma_init_check();
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_SMALL) && defined(HAVE_ENCODER) && defined(HAVE_FILTER_LZMA)
|
||||
lzma_rc_init();
|
||||
|
|
|
@ -81,6 +81,8 @@ test_crc64(void)
|
|||
int
|
||||
main(void)
|
||||
{
|
||||
lzma_init_check();
|
||||
|
||||
bool error = false;
|
||||
|
||||
error |= test_crc32();
|
||||
|
|
Loading…
Reference in a new issue