]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't define mbrtowc at all.
authorJim Meyering <jim@meyering.net>
Sat, 13 Aug 2005 22:47:48 +0000 (22:47 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 13 Aug 2005 22:47:48 +0000 (22:47 +0000)
If mbstate_t is not defined, then AC_TYPE_MBSTATE_T will define
it to `int' for us.

src/wc.c

index 96747fc4db28af8d013b634030ff9e3558f6588a..4147d7c11657d80c843c2bcccde4b7635323fde5 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
 #include "inttostr.h"
 #include "safe-read.h"
 
-/* Some systems, like BeOS, have multibyte encodings but lack mbstate_t.  */
-#if HAVE_MBRTOWC && ! defined HAVE_MBSTATE_T
-# define mbrtowc(pwc, s, n, ps) (mbrtowc) (pwc, s, n, 0)
-#endif
-
 #ifndef HAVE_DECL_WCWIDTH
 "this configure-time declaration test was not run"
 #endif