summaryrefslogtreecommitdiff
path: root/wcsmbs/wmemchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wmemchr.c')
-rw-r--r--wcsmbs/wmemchr.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/wcsmbs/wmemchr.c b/wcsmbs/wmemchr.c
index 266950c84b..27a79d58c6 100644
--- a/wcsmbs/wmemchr.c
+++ b/wcsmbs/wmemchr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
@@ -18,11 +18,12 @@
#include <wchar.h>
+#ifdef WMEMCHR
+# define __wmemchr WMEMCHR
+#endif
+
wchar_t *
-__wmemchr (s, c, n)
- const wchar_t *s;
- wchar_t c;
- size_t n;
+__wmemchr (const wchar_t *s, wchar_t c, size_t n)
{
/* For performance reasons unfold the loop four times. */
while (n >= 4)