зеркало из
https://git.tukaani.org/xz.git
synced 2025-10-14 13:18:18 +00:00
or no inttypes.h. This is useful when the compiler has good enough support for C99, but libc headers don't. Changed liblzma API so that sys/types.h and inttypes.h have to be #included before #including lzma.h. On systems that don't have C99 inttypes.h, it's the problem of the applications to provide the required types and macros before #including lzma.h. If lzma.h defined the missing types and macros, it could conflict with third-party applications whose configure has detected that the types are missing and defined them in config.h already. An alternative would have been introducing lzma_uint32 and similar types, but that would just be an extra pain on modern systems.
21 строка
628 B
C
21 строка
628 B
C
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
/// \file crc32_table.c
|
|
/// \brief Precalculated CRC32 table with correct endianness
|
|
//
|
|
// This code has been put into the public domain.
|
|
//
|
|
// This library is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "sysdefs.h"
|
|
|
|
#ifdef WORDS_BIGENDIAN
|
|
# include "crc32_table_be.h"
|
|
#else
|
|
# include "crc32_table_le.h"
|
|
#endif
|