changeset 2703:08bfe8406b31

Make inclusion of <wchar.h> independent of whether HAVE_MBRTOWC is set. Required at least for irix-5.6, which lacks mbrtowc.
author Jim Meyering <jim@meyering.net>
date Tue, 04 Jul 2000 17:31:56 +0000
parents 37bd40a3ae4f
children 1510de860841
files lib/quotearg.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -58,8 +58,11 @@
 # include <string.h>
 #endif
 
+#if HAVE_WCHAR_H
+# include <wchar.h>
+#endif
+
 #if HAVE_MBRTOWC && HAVE_WCHAR_H
-# include <wchar.h>
 # if !HAVE_MBSTATE_T_OBJECT
 #  define mbrtowc(pwc, s, n, ps) (mbrtowc) (pwc, s, n, 0)
 # endif