]> icculus.org git repositories - icculus/xz.git/commit - src/common/sysdefs.h
Introduced compatibility with systems that have pre-C99
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 6 Jan 2008 14:27:41 +0000 (16:27 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 6 Jan 2008 14:27:41 +0000 (16:27 +0200)
commit4e7e54c4c522ab2f6a7abb92cefc4f707e9568fb
tree852cde1e5bef3e46c5415884e283ef874f8eed73
parenta71864f77dfb76b5d78a270641539947c312583a
Introduced compatibility with systems that have pre-C99
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.
13 files changed:
configure.ac
doc/liblzma-intro.txt
src/common/sysdefs.h
src/liblzma/api/lzma.h
src/liblzma/check/crc32_table.c
src/liblzma/check/crc32_table_be.h
src/liblzma/check/crc32_table_le.h
src/liblzma/check/crc32_tablegen.c
src/liblzma/check/crc64_table.c
src/liblzma/check/crc64_table_be.h
src/liblzma/check/crc64_table_le.h
src/liblzma/check/crc64_tablegen.c
src/lzma/private.h