aboutsummaryrefslogtreecommitdiff
path: root/libio/stdio.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2012-01-07 10:41:00 -0500
committerUlrich Drepper <drepper@gmail.com>2012-01-07 10:41:00 -0500
commitc3a87236702cb73be1dada3438bbd3c3934e83f8 (patch)
treead104433e488799e062bedcafa73672ee48259d7 /libio/stdio.h
parentfbb68a84ee16345203f896f29b93e92a52582201 (diff)
downloadglibc-c3a87236702cb73be1dada3438bbd3c3934e83f8.zip
glibc-c3a87236702cb73be1dada3438bbd3c3934e83f8.tar.gz
glibc-c3a87236702cb73be1dada3438bbd3c3934e83f8.tar.bz2
Do not declare gets in _GNU_SOURCE mode at all
Diffstat (limited to 'libio/stdio.h')
-rw-r--r--libio/stdio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/stdio.h b/libio/stdio.h
index d9cb573..28c98e9 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -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.