Hi, This patch brings the _LIBC check earlier to avoid checking a possibly undefined MBSTATE_T, thus fixing a -Wundef warning in glibc. OK to commit?
Thanks, Siddhesh 2014-07-31 Siddhesh Poyarekar <[email protected]> fnmatch: Fix -Wundef warnings in glibc. * lib/fnmatch.c [defined _LIBC || WIDE_CHAR_SUPPORT]: Check if _LIBC is defined before checking MBSTATE_T. diff --git a/lib/fnmatch.c b/lib/fnmatch.c index 7b15396..b802bcf 100644 --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -112,7 +112,7 @@ extern int fnmatch (const char *pattern, const char *string, int flags); # define ISWCTYPE(WC, WT) iswctype (WC, WT) # endif -# if (HAVE_MBSTATE_T && HAVE_MBSRTOWCS) || _LIBC +# if defined _LIBC || (HAVE_MBSTATE_T && HAVE_MBSRTOWCS) /* In this case we are implementing the multibyte character handling. */ # define HANDLE_MULTIBYTE 1 # endif -- 1.9.3
pgpU2hb9oHF8b.pgp
Description: PGP signature
