[COMMITTED] Fix include/wchar.h for C++
Commit Message
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.
@@ -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)