Hello Michał,
Michał Górny wrote:
The lzlib.h header installed by lzlib uses the uint8_t type, yet doesn't
include <stdint.h>. As a result, programs using it fail to compile
unless they happen to include <stdint.h> prior to <lzlib.h>,
Thank you very much for reporting this.
It is the responsibility of the program using lzlib to include some header
that declares the type 'uint8_t'. 'lzlib.h' can be used by C and C++
programs, and therefore it must not impose a choice of header on the
program. AFAIK, there are at least 4 headers to choose from: 'stdint.h',
'cstdint', 'inttypes.h', and 'cinttypes'.
I'll document in the manual and in 'lzlib.h' itself the need of including
one of those headers before including 'lzlib.h'.
Best regards,
Antonio.