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 #ifdef HAVE_CONFIG_H
# include "sysdefs.h" # include "check.h"
#endif #endif
#ifdef WORDS_BIGENDIAN #ifdef WORDS_BIGENDIAN

View File

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

View File

@ -25,9 +25,7 @@ lzma_init_decoder(void)
{ {
// So far there's no decoder-specific stuff to initialize. // So far there's no decoder-specific stuff to initialize.
#ifdef HAVE_CHECK
lzma_init_check(); lzma_init_check();
#endif
return; return;
} }

View File

@ -29,9 +29,7 @@ lzma_init_encoder(void)
if (already_initialized) if (already_initialized)
return; return;
#ifdef HAVE_CHECK
lzma_init_check(); lzma_init_check();
#endif
#if defined(HAVE_SMALL) && defined(HAVE_ENCODER) && defined(HAVE_FILTER_LZMA) #if defined(HAVE_SMALL) && defined(HAVE_ENCODER) && defined(HAVE_FILTER_LZMA)
lzma_rc_init(); lzma_rc_init();

View File

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