From 98deb4fad3bdc7986274feebac3f0f8a50fdce0a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 1 May 2023 08:11:12 -0700 Subject: limits-h: port to pcc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * doc/posix-headers/limits.texi: Document the issue. * lib/limits.in.h (MB_LEN_MAX): New macro, if not already defined. * m4/limits-h.m4 (gl_LIMITS_H): Test for MB_LEN_MAX. * tests/test-limits-h.c: Check that it’s positive. --- tests/test-limits-h.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/test-limits-h.c b/tests/test-limits-h.c index d8cdac288d..d7cfba7131 100644 --- a/tests/test-limits-h.c +++ b/tests/test-limits-h.c @@ -113,6 +113,8 @@ verify_width (ULLONG_WIDTH, 0, ULLONG_MAX); int bool_attrs[] = { BOOL_MAX, BOOL_WIDTH }; static_assert (BOOL_MAX == (((1U << (BOOL_WIDTH - 1)) - 1) * 2) + 1); +static_assert (0 < MB_LEN_MAX); + int main (void) { -- cgit v1.2.1