]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Test `!defined HAVE_MBSTATE_T' rather than
authorJim Meyering <jim@meyering.net>
Fri, 12 Aug 2005 08:08:00 +0000 (08:08 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 12 Aug 2005 08:08:00 +0000 (08:08 +0000)
`defined mbstate_t' to detect missing support for mbstate_t.
The latter didn't work for HP-UX 11.23.

src/wc.c

index 98af229037dd64b25c0f429e99d88008454b93ea..96747fc4db28af8d013b634030ff9e3558f6588a 100644 (file)
--- 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