1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

(MB_LEN_MAX): Make sure it's at least 6, to avoid buggy C libraries.

This commit is contained in:
Jim Meyering
2000-11-09 08:32:52 +00:00
parent bb73f9b20e
commit 48a83af35c

View File

@@ -42,8 +42,12 @@ extern int errno;
#if HAVE_LIMITS_H
# include <limits.h>
#endif
#ifndef MB_LEN_MAX
# define MB_LEN_MAX 1
/* MB_LEN_MAX is incorrectly defined to be 1 in at least one GCC
installation; work around this configuration error. */
#if MB_LEN_MAX < 6
# undef MB_LEN_MAX
# define MB_LEN_MAX 6
#endif
#if HAVE_ICONV