From patchwork Sat Jun 4 07:28:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 12767 Received: (qmail 54277 invoked by alias); 4 Jun 2016 07:28:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 54257 invoked by uid 89); 4 Jun 2016 07:28:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Hx-languages-length:977, H*r:501 X-HELO: mail-out.m-online.net X-Auth-Info: bxDnI6CYFYDMjA52pzwtXYUj7bQTfz9A0d4hv6P9Jc42aNH4KzLwwA42/mbuaXZ2 From: Andreas Schwab To: Carlos O'Donell Cc: GNU C Library , "Joseph S. Myers" Subject: Re: [COMMITTED] Fix include/wchar.h for C++ References: <57521CAA.4010800@redhat.com> X-Yow: The PILLSBURY DOUGHBOY is CRYING for an END to BURT REYNOLDS movies!! Date: Sat, 04 Jun 2016 09:28:15 +0200 In-Reply-To: <57521CAA.4010800@redhat.com> (Carlos O'Donell's message of "Fri, 3 Jun 2016 20:11:22 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.94 (gnu/linux) MIME-Version: 1.0 Carlos O'Donell 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)