Make inclusion of <wchar.h> independent of whether
authorJim Meyering <jim@meyering.net>
Tue, 4 Jul 2000 17:31:56 +0000 (17:31 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 4 Jul 2000 17:31:56 +0000 (17:31 +0000)
HAVE_MBRTOWC is set.  Required at least for irix-5.6, which lacks mbrtowc.

lib/quotearg.c

index 902192e701edc8bd0d5c92ccb7d3acceada6e184..553a0f0c385d0e16034c6d8890eb3379246e734c 100644 (file)
 # 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