X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffnmatch.c;h=73dc0e78ec02a8fb9de6fb252d1997bfca7787f1;hb=a76a349e949dfad5716eb3893052070b770e949f;hp=1b498e5f3da76201fbc1e8a348ca381fcbaa6e25;hpb=8fa55dff3858f5d177b5b36413a50ed9a07c36b7;p=gnulib.git diff --git a/lib/fnmatch.c b/lib/fnmatch.c index 1b498e5f3..73dc0e78e 100644 --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -63,9 +63,11 @@ char *alloca (); # include #endif +#define WIDE_CHAR_SUPPORT (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC) + /* For platform which support the ISO C amendement 1 functionality we support user defined character classes. */ -#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H) +#if defined _LIBC || WIDE_CHAR_SUPPORT /* Solaris 2.5 has a bug: must be included before . */ # include # include @@ -133,7 +135,7 @@ extern int fnmatch (const char *pattern, const char *string, int flags); # define STREQ(s1, s2) ((strcmp (s1, s2) == 0)) -# if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H) +# if defined _LIBC || WIDE_CHAR_SUPPORT /* The GNU C library provides support for user-defined character classes and the functions from ISO C amendement 1. */ # ifdef CHARCLASS_NAME_MAX