This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [COMMITTED] Fix include/wchar.h for C++
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Carlos O'Donell <carlos at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Sat, 04 Jun 2016 09:28:15 +0200
- Subject: Re: [COMMITTED] Fix include/wchar.h for C++
- Authentication-results: sourceware.org; auth=none
- References: <57521CAA dot 4010800 at redhat dot com>
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."