|
From: | Antonio Diaz Diaz |
Subject: | Re: Missing includes for uint8_t type in lzlib.h |
Date: | Thu, 24 Nov 2022 17:16:03 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |