diff options
author | Jim Meyering <jim@meyering.net> | 2002-06-26 06:17:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-06-26 06:17:35 +0000 |
commit | 0d051ba2210886d3b07e636c6c427462280999b7 (patch) | |
tree | ba6e9e9a0740c725c50b2e680d953fee460a3726 /lib/fnmatch_loop.c | |
parent | 8020e5b1e3c25f6e1289da707897b72e89aa7678 (diff) | |
download | coreutils-0d051ba2210886d3b07e636c6c427462280999b7.tar.xz |
(WIDE_CHAR_SUPPORT): New macro. Use it uniformly instead of
(defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
reported by Vin Shelton.
Diffstat (limited to 'lib/fnmatch_loop.c')
-rw-r--r-- | lib/fnmatch_loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fnmatch_loop.c b/lib/fnmatch_loop.c index e7b0a91fe..e3450b690 100644 --- a/lib/fnmatch_loop.c +++ b/lib/fnmatch_loop.c @@ -248,7 +248,7 @@ FCT (pattern, string, string_end, no_leading_period, flags) /* Leave room for the null. */ CHAR str[CHAR_CLASS_MAX_LENGTH + 1]; size_t c1 = 0; -#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H) +#if defined _LIBC || WIDE_CHAR_SUPPORT wctype_t wt; #endif const CHAR *startp = p; @@ -278,7 +278,7 @@ FCT (pattern, string, string_end, no_leading_period, flags) } str[c1] = L('\0'); -#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H) +#if defined _LIBC || WIDE_CHAR_SUPPORT wt = IS_CHAR_CLASS (str); if (wt == 0) /* Invalid character class name. */ |