1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-12 12:00:21 +02:00

Test `!defined HAVE_MBSTATE_T' rather than

`defined mbstate_t' to detect missing support for mbstate_t.
The latter didn't work for HP-UX 11.23.
This commit is contained in:
Jim Meyering
2005-08-12 08:08:00 +00:00
parent 68b0358b66
commit 53a9b25dc2
+1 -1
View File
@@ -51,7 +51,7 @@
#include "safe-read.h"
/* Some systems, like BeOS, have multibyte encodings but lack mbstate_t. */
#if HAVE_MBRTOWC && defined mbstate_t
#if HAVE_MBRTOWC && ! defined HAVE_MBSTATE_T
# define mbrtowc(pwc, s, n, ps) (mbrtowc) (pwc, s, n, 0)
#endif