This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51785] gets not anymore declared
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Feb 2012 16:18:30 +0000
- Subject: [Bug libstdc++/51785] gets not anymore declared
- Auto-submitted: auto-generated
- References: <bug-51785-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51785
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-28 16:18:30 UTC ---
Ideally, when using
#define _GNU_SOURCE
#include <stdio.h>
in a C++ program ::gets wouldn't be available (the _GNU_SOURCE requests GNU
namespace rather than standard C++ one), but when using
#include <list>
#include <stdio.h>
it would provide it (with deprecated attribute), because then the user didn't
request _GNU_SOURCE. But for that we'd need some new macro to request
additional prototype for STL needs.