This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/51785] gets not anymore declared


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51785

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-05 20:34:05 UTC ---
Yeah, IMHO the removal of gets (== ::gets) for _GNU_SOURCE is very much
intentional.  C++ probably only talks about std::gets, doesn't it?
So IMHO then should libstdc++ just for glibc versions that don't provide gets
prototype with _GNU_SOURCE defined instead add
namespace std
{
  char *gets (char *) __asm ("gets");
};


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