This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]