(WIDE_CHAR_SUPPORT): Don't set to 1 if missing
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Aug 2004 22:43:31 +0000 (22:43 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Aug 2004 22:43:31 +0000 (22:43 +0000)
wmemchr or wmemcpy.  Problem reported by Robert Dahlem
for Reliant Unix 5.43.

lib/fnmatch.c

index 3246896..011a145 100644 (file)
@@ -39,7 +39,9 @@
 #include <stdlib.h>
 #include <string.h>
 
-#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.  */