1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

Always declare gets for C++ up to C++11 without checking __USE_GNU.

This commit is contained in:
Joseph Myers
2012-03-09 22:08:39 +00:00
parent 4962050e97
commit c6e013c15e
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
2012-03-09 Joseph Myers <joseph@codesourcery.com> 2012-03-09 Joseph Myers <joseph@codesourcery.com>
[BZ #13566]
* libio/stdio.h (gets): Always declare for C++ up to C++11 without
checking __USE_GNU.
* Makerules ($(inst_includedir)/%.h): New rule. * Makerules ($(inst_includedir)/%.h): New rule.
* stdio-common/Makefile (headers): Add bits/stdio_lim.h. * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
(install-others): Remove variable setting. (install-others): Remove variable setting.

View File

@@ -623,7 +623,7 @@ extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
__wur; __wur;
#if !defined __USE_ISOC11 \ #if !defined __USE_ISOC11 \
|| (defined __cplusplus && __cplusplus <= 201103L && !defined __USE_GNU) || (defined __cplusplus && __cplusplus <= 201103L)
/* Get a newline-terminated string from stdin, removing the newline. /* Get a newline-terminated string from stdin, removing the newline.
DO NOT USE THIS FUNCTION!! There is no limit on how much it will read. DO NOT USE THIS FUNCTION!! There is no limit on how much it will read.