Fix C++ issues with C11 glibc changes

Jonathan Wakely jwakely.gcc@gmail.com
Fri Jan 6 17:19:00 GMT 2012


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
WG21's attention.

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



More information about the Libc-alpha mailing list