1
0
Fork 0
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:
Lasse Collin 2008-01-15 07:44:59 +02:00
parent 949d4346e2
commit 78e85cb1a7
5 changed files with 4 additions and 6 deletions

View file

@ -13,7 +13,7 @@
///////////////////////////////////////////////////////////////////////////////
#ifdef HAVE_CONFIG_H
# include "sysdefs.h"
# include "check.h"
#endif
#ifdef WORDS_BIGENDIAN

View file

@ -13,7 +13,7 @@
///////////////////////////////////////////////////////////////////////////////
#ifdef HAVE_CONFIG_H
# include "sysdefs.h"
# include "check.h"
#endif
#ifdef WORDS_BIGENDIAN

View file

@ -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;
}

View file

@ -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();

View file

@ -81,6 +81,8 @@ test_crc64(void)
int
main(void)
{
lzma_init_check();
bool error = false;
error |= test_crc32();