From a170e5889491163861b5931d74d37bd099cc6afa Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 11 Aug 2004 22:43:31 +0000 Subject: [PATCH] (WIDE_CHAR_SUPPORT): Don't set to 1 if missing wmemchr or wmemcpy. Problem reported by Robert Dahlem for Reliant Unix 5.43. --- lib/fnmatch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/fnmatch.c b/lib/fnmatch.c index 32468964d8..011a145038 100644 --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -39,7 +39,9 @@ #include #include -#define WIDE_CHAR_SUPPORT (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC) +#define WIDE_CHAR_SUPPORT \ + (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC \ + && HAVE_WMEMCHR && (HAVE_WMEMCPY || HAVE_WMEMPCPY)) /* For platform which support the ISO C amendement 1 functionality we support user defined character classes. */ -- 2.30.2