[libc-commits] [libc] [libc] Define `MB_LEN_MAX` in `limits.h` (PR #102246)
via libc-commits
libc-commits at lists.llvm.org
Tue Aug 6 20:22:34 PDT 2024
================
@@ -19,12 +19,9 @@
#endif // __CHAR_BIT__
#endif // CHAR_BIT
-// TODO: https://github.com/llvm/llvm-project/issues/79358
-// Define MB_LEN_MAX if missing.
-// clang: MB_LEN_MAX = 1 -
-// https://github.com/llvm/llvm-project/blob/main/clang/lib/Headers/limits.h#L64
-// glibc: MB_LEN_MAX = 16 -
-// https://github.com/bminor/glibc/blob/master/include/limits.h#L32
+#ifndef MB_LEN_MAX
+#define MB_LEN_MAX 4
----------------
lntue wrote:
Do you mind adding comments about the rationale of the value, in case the assumption is changed in the future?
https://github.com/llvm/llvm-project/pull/102246
More information about the libc-commits
mailing list