From: Paul Eggert Date: Wed, 11 Aug 2004 22:43:31 +0000 (+0000) Subject: (WIDE_CHAR_SUPPORT): Don't set to 1 if missing X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a170e5889491163861b5931d74d37bd099cc6afa;p=pspp (WIDE_CHAR_SUPPORT): Don't set to 1 if missing wmemchr or wmemcpy. Problem reported by Robert Dahlem for Reliant Unix 5.43. --- 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. */