[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix Wundef warning in glibc in fnmatch.c
From: |
Siddhesh Poyarekar |
Subject: |
[PATCH] Fix Wundef warning in glibc in fnmatch.c |
Date: |
Fri, 1 Aug 2014 01:19:10 +0530 |
User-agent: |
Mutt/1.5.22.1-rc1 (2013-10-16) |
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 <address@hidden>
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
pgpSuNrhLiYku.pgp
Description: PGP signature
- [PATCH] Fix Wundef warning in glibc in fnmatch.c,
Siddhesh Poyarekar <=