[COMMITTED] Fix include/wchar.h for C++

Message ID m27fe5za40.fsf@linux-m68k.org
State Committed
Headers

Commit Message

Andreas Schwab June 4, 2016, 7:28 a.m. UTC
  Carlos O'Donell <carlos@redhat.com> writes:

> It is not possible, at least not initially to me, to use typeof
> in C++ to express a function declaration.

Of course, since it is mispelled.

Andreas.

	* include/wchar.h (__wmemset): Use __typeof.
  

Patch

diff --git a/include/wchar.h b/include/wchar.h
index 96b0438..6272130 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -102,7 +102,7 @@  extern int __wcscoll (const wchar_t *__s1, const wchar_t *__s2) __THROW;
 libc_hidden_proto (__wcscoll)
 libc_hidden_proto (wcspbrk)
 
-extern wchar_t *__wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW;
+extern __typeof (wmemset) __wmemset;
 extern wchar_t *__wmemchr (const wchar_t *__s, wchar_t __c, size_t __n)
      __THROW __attribute_pure__;
 libc_hidden_proto (wmemchr)