This is the mail archive of the
mailing list for the libstdc++ project.
Re: Fix C++ issues with C11 glibc changes
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org, libstdc++ at gcc dot gnu dot org
- Date: Fri, 6 Jan 2012 17:15:13 +0000
- Subject: Re: Fix C++ issues with C11 glibc changes
- References: <Pine.LNX.email@example.com>
On 6 January 2012 16:28, Joseph S. Myers wrote:
> * gets is still in C++11, and GCC always defines _GNU_SOURCE for C++
> ?(so the library implementation, largely in headers, can use glibc
> ?functions that aren't in ISO C); the declaration is needed for
> ?<cstdio> to import it into namespace std. ?(I doubt it really
> ?*should* have been kept in C++11, given the adoption of various C11
> ?library features there, but it's certainly in C++03 and it's
> ?probably also useful to keep working with older GCC versions.)
I doubt anyone in WG21 would have objected to removing gets() so the
fact it wasn't dropped is probably just because noone brought it to
> Tested x86_64-linux-gnu. ?OK for glibc? ?Does this all look right to
> the libstdc++ people?
Looks good to me, thanks for dealing with it so quickly.