Fix CRC code in case --enable-small is used.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 15 Jan 2008 05:44:59 +0000 (07:44 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 15 Jan 2008 05:44:59 +0000 (07:44 +0200)
src/liblzma/check/crc32_init.c
src/liblzma/check/crc64_init.c
src/liblzma/common/init_decoder.c
src/liblzma/common/init_encoder.c
tests/test_check.c

index 996ad26..0dd402a 100644 (file)
@@ -13,7 +13,7 @@
 ///////////////////////////////////////////////////////////////////////////////
 
 #ifdef HAVE_CONFIG_H
-#      include "sysdefs.h"
+#      include "check.h"
 #endif
 
 #ifdef WORDS_BIGENDIAN
index b0963f6..4c91a77 100644 (file)
@@ -13,7 +13,7 @@
 ///////////////////////////////////////////////////////////////////////////////
 
 #ifdef HAVE_CONFIG_H
-#      include "sysdefs.h"
+#      include "check.h"
 #endif
 
 #ifdef WORDS_BIGENDIAN
index 2d61b45..e319b2f 100644 (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;
 }
index 13873aa..ec9fee6 100644 (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();
index cb6b8ec..40715c6 100644 (file)
@@ -81,6 +81,8 @@ test_crc64(void)
 int
 main(void)
 {
+       lzma_init_check();
+
        bool error = false;
 
        error |= test_crc32();