From: Jim Meyering Date: Fri, 12 Aug 2005 08:08:00 +0000 (+0000) Subject: Test `!defined HAVE_MBSTATE_T' rather than X-Git-Tag: CPPI-1_12~195 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53a9b25dc2a50d2bcfb5b765cb6c9afaab23e0d6;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/wc.c b/src/wc.c index 98af229037..96747fc4db 100644 --- a/src/wc.c +++ b/src/wc.c @@ -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