[COMMITTED] Fix include/wchar.h for C++
Andreas Schwab
schwab@linux-m68k.org
Sat Jun 4 07:28:00 GMT 2016
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.
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)
--
2.8.3
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list