diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-05-01 08:11:12 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-05-01 08:11:37 -0700 |
commit | 98deb4fad3bdc7986274feebac3f0f8a50fdce0a (patch) | |
tree | 665cf82abe975de6d64a22b3a4bc461c3ede462b /lib | |
parent | c2a5953f179814dd0f4b7e627aae9a009181ed6a (diff) | |
download | gnulib-98deb4fad3bdc7986274feebac3f0f8a50fdce0a.tar.gz |
limits-h: port to pcc
* 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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/limits.in.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/limits.in.h b/lib/limits.in.h index a01b4c6a28..45d46fd689 100644 --- a/lib/limits.in.h +++ b/lib/limits.in.h @@ -99,6 +99,11 @@ # endif #endif +/* Assume no multibyte character is longer than 16 bytes. */ +#ifndef MB_LEN_MAX +# define MB_LEN_MAX 16 +#endif + /* Macros specified by C23 and by ISO/IEC TS 18661-1:2014. */ #if (! defined ULLONG_WIDTH \ |