summaryrefslogtreecommitdiff
path: root/lib/quotearg.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-04 17:31:56 +0000
committerJim Meyering <jim@meyering.net>2000-07-04 17:31:56 +0000
commit3b261584452f0e3bca170e504690645b7d1d4fbb (patch)
tree29103da66216af112107b2891bce0912a287eb57 /lib/quotearg.c
parenta9f8981529427b894abf4b0286c551566ad7bc68 (diff)
downloadcoreutils-3b261584452f0e3bca170e504690645b7d1d4fbb.tar.xz
Make inclusion of <wchar.h> independent of whether
HAVE_MBRTOWC is set. Required at least for irix-5.6, which lacks mbrtowc.
Diffstat (limited to 'lib/quotearg.c')
-rw-r--r--lib/quotearg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/quotearg.c b/lib/quotearg.c
index 902192e70..553a0f0c3 100644
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -58,8 +58,11 @@
# include <string.h>
#endif
-#if HAVE_MBRTOWC && HAVE_WCHAR_H
+#if HAVE_WCHAR_H
# include <wchar.h>
+#endif
+
+#if HAVE_MBRTOWC && HAVE_WCHAR_H
# if !HAVE_MBSTATE_T_OBJECT
# define mbrtowc(pwc, s, n, ps) (mbrtowc) (pwc, s, n, 0)
# endif