Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
authorJim Meyering <jim@meyering.net>
Mon, 24 Jul 2000 06:14:19 +0000 (06:14 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 24 Jul 2000 06:14:19 +0000 (06:14 +0000)
commit8ed25ee69927e755445a4d9b8dcc5d03044c709a
tree2a08aab1f07b6a1ff1b90a349ceeb8133206ba43
parent89bc0205729e4eb2d3bc8cf4f4c2f406d74416c0
Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
so that mbstate_t is always defined.

Do not inspect MB_LEN_MAX, since it's incorrectly defined to
be 1 in at least one GCC installation, and this configuration
error is likely to be common.  Ignoring MB_LEN_MAX hurts
performance on hosts that have mbrtowc but have only unibyte
locales, but I assume these hosts are rare.
lib/quotearg.c