summaryrefslogtreecommitdiff
path: root/lib/quotearg.c
diff options
context:
space:
mode:
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