]> sourceware.org Git - glibc.git/commitdiff
Do not declare gets in _GNU_SOURCE mode at all
authorUlrich Drepper <drepper@gmail.com>
Sat, 7 Jan 2012 15:41:00 +0000 (10:41 -0500)
committerUlrich Drepper <drepper@gmail.com>
Sat, 7 Jan 2012 15:41:00 +0000 (10:41 -0500)
ChangeLog
libio/stdio.h

index 8f9558c56553b8a53422bc84a1bf959162ef9b71..f089e19b87728c9528116a88977977533bc91e87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
 
+       * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
+
        * elf/tst-unique3.cc: Add explicit declaration of gets.
        * elf/tst-unique3lib.cc: Likewise.
        * elf/tst-unique3lib2.cc: Likewise.
index d9cb573b6bc74a9b12195c292e0bd3e3ff04fa3c..28c98e9163758e56585ff94787a802fe0b54a325 100644 (file)
@@ -629,7 +629,7 @@ extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      __wur;
 
 #if !defined __USE_ISOC11 \
-    || (defined __cplusplus && __cplusplus <= 201103L)
+    || (defined __cplusplus && __cplusplus <= 201103L && !defined __USE_GNU)
 /* 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.
 
This page took 0.058445 seconds and 5 git commands to generate.