diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-12-03 22:52:43 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-12-03 22:52:43 -0500 |
commit | 4f67e6a563c9f9488d257c68533c4cf7f2b8b488 (patch) | |
tree | bf3b732b23c5f67495e291de0d2e4bfedc511a84 /lib/readline/rlmbutil.h | |
parent | b238140076b6a75b0e9419141a4da52fdbd1e3b6 (diff) | |
download | bash-4f67e6a563c9f9488d257c68533c4cf7f2b8b488.tar.gz |
commit bash-20060914 snapshot
Diffstat (limited to 'lib/readline/rlmbutil.h')
-rw-r--r-- | lib/readline/rlmbutil.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/readline/rlmbutil.h b/lib/readline/rlmbutil.h index 11adacb4..dd317e2a 100644 --- a/lib/readline/rlmbutil.h +++ b/lib/readline/rlmbutil.h @@ -32,10 +32,19 @@ /* For platforms which support the ISO C amendement 1 functionality we support user defined character classes. */ /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */ -#if defined (HAVE_WCTYPE_H) && defined (HAVE_WCHAR_H) +#if defined (HAVE_WCTYPE_H) && defined (HAVE_WCHAR_H) && defined (HAVE_LOCALE_H) # include <wchar.h> # include <wctype.h> -# if defined (HAVE_MBSRTOWCS) && defined (HAVE_MBRTOWC) && defined (HAVE_MBRLEN) && defined (HAVE_WCWIDTH) +# if defined (HAVE_ISWCTYPE) && \ + defined (HAVE_ISWLOWER) && \ + defined (HAVE_ISWUPPER) && \ + defined (HAVE_MBSRTOWCS) && \ + defined (HAVE_MBRTOWC) && \ + defined (HAVE_MBRLEN) && \ + defined (HAVE_TOWLOWER) && \ + defined (HAVE_TOWUPPER) && \ + defined (HAVE_WCHAR_T) && \ + defined (HAVE_WCWIDTH) /* system is supposed to support XPG5 */ # define HANDLE_MULTIBYTE 1 # endif |