-/* Copyright (C) 1996, 1997, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
+ <https://www.gnu.org/licenses/>. */
#include <wchar.h>
-#ifndef WMEMCMP
-# define WMEMCMP wmemcmp
+#ifdef WMEMCMP
+# define __wmemcmp WMEMCMP
#endif
int
-WMEMCMP (s1, s2, n)
- const wchar_t *s1;
- const wchar_t *s2;
- size_t n;
+__wmemcmp (const wchar_t *s1, const wchar_t *s2, size_t n)
{
- register wchar_t c1;
- register wchar_t c2;
+ wchar_t c1;
+ wchar_t c2;
while (n >= 4)
{
return 0;
}
+#ifndef WMEMCMP
+weak_alias (__wmemcmp, wmemcmp)
+#endif