mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-06 07:06:38 -04:00
build: fix compilation error on Alpine Linux and OpenBSD
* gl/lib/mbbuf.h: Define MBBUF_EOF in terms of MCEL_CHAR_MAX, rather than depending on the stdint module. Reported by Bruno Haible.
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ _GL_INLINE_HEADER_BEGIN
|
||||
#endif
|
||||
|
||||
/* End of file. */
|
||||
#define MBBUF_EOF UINT32_MAX
|
||||
#define MBBUF_EOF (MCEL_CHAR_MAX+1)
|
||||
|
||||
/* MBBUF_EOF should not be a valid character. */
|
||||
static_assert (MCEL_CHAR_MAX < MBBUF_EOF);
|
||||
|
||||
Reference in New Issue
Block a user