diff options
author | Jim Meyering <jim@meyering.net> | 2005-08-12 08:08:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-08-12 08:08:00 +0000 |
commit | 53a9b25dc2a50d2bcfb5b765cb6c9afaab23e0d6 (patch) | |
tree | 3d9fd684814a0b5a483cfd31c49d04bc7074a141 | |
parent | 68b0358b66daa89cf499e6a4b455972df79f6a6c (diff) | |
download | coreutils-53a9b25dc2a50d2bcfb5b765cb6c9afaab23e0d6.tar.xz |
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.
-rw-r--r-- | src/wc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |