summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-02-17 10:39:43 +0000
committerJim Meyering <jim@meyering.net>2001-02-17 10:39:43 +0000
commitad177f456c86967d3b099303429bded3e3f26012 (patch)
treeb9637f3d5157fc306bd62afb7d3d0802fc6112d4
parent1f7a13e62e08a0838ad1eff544129e2cbbbab665 (diff)
downloadcoreutils-ad177f456c86967d3b099303429bded3e3f26012.tar.xz
(mbrtowc, mbsinit):
Remove workaround macros for hosts that have mbrtowc but not mbstate_t, as we now insist on proper declarations for both before using mbrtowc.
-rw-r--r--lib/quotearg.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/quotearg.c b/lib/quotearg.c
index a668a68b5..2a7ba4c44 100644
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -66,13 +66,7 @@
# include <wchar.h>
#endif
-#if HAVE_MBRTOWC
-size_t mbrtowc ();
-# ifdef mbstate_t
-# define mbrtowc(pwc, s, n, ps) (mbrtowc) (pwc, s, n, 0)
-# define mbsinit(ps) 1
-# endif
-#else
+#if !HAVE_MBRTOWC
/* Disable multibyte processing entirely. Since MB_CUR_MAX is 1, the
other macros are defined only for documentation and to satisfy C
syntax. */