summaryrefslogtreecommitdiff
path: root/posix/fnmatch.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-06-26 20:40:46 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-06-26 22:30:45 +0530
commit059bf913b5b3c5553a3756b4d9794e2eb3ce4f25 (patch)
tree231ce4e0ba1fea2917df2ce7f06e95a915a816ce /posix/fnmatch.c
parent4cf5b6d0d7c8dd40526375f384133262ed7b2ccc (diff)
downloadglibc-059bf913b5b3c5553a3756b4d9794e2eb3ce4f25.tar.gz
Fix Wundef warning for WIDE_CHAR_VERSION
fnmatch.c defines WIDE_CHAR_VERSION as 1 for wide chars, but does not define it for the non-wide char bits. Define it and also undef it in fnmatch_loop.c like all other macros.
Diffstat (limited to 'posix/fnmatch.c')
-rw-r--r--posix/fnmatch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/posix/fnmatch.c b/posix/fnmatch.c
index 4f14a8b839..ca95ab4df2 100644
--- a/posix/fnmatch.c
+++ b/posix/fnmatch.c
@@ -225,6 +225,7 @@ __wcschrnul (s, c)
# define MEMPCPY(D, S, N) __mempcpy (D, S, N)
# define MEMCHR(S, C, N) memchr (S, C, N)
# define STRCOLL(S1, S2) strcoll (S1, S2)
+# define WIDE_CHAR_VERSION 0
# include "fnmatch_loop.c"