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. --- doc/posix-headers/limits.texi | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/posix-headers/limits.texi b/doc/posix-headers/limits.texi index 09440cac8d..5fdcd14546 100644 --- a/doc/posix-headers/limits.texi +++ b/doc/posix-headers/limits.texi @@ -12,6 +12,9 @@ The macros @code{LLONG_MIN}, @code{LLONG_MAX}, @code{ULLONG_MAX} are not defined on some platforms: older glibc systems (e.g. Fedora 1), AIX 5.1, HP-UX 11, IRIX 6.5, OpenVMS. @item +The macro @code{MB_LEN_MAX} is not defined on some platforms: +pcc 1.2.0.DEVEL 20220331. +@item The macros @code{WORD_BIT}, @code{LONG_BIT} are not defined on some platforms: glibc 2.11 without @code{-D_GNU_SOURCE}, Cygwin, mingw, MSVC 14. @item -- cgit v1.2.1