summaryrefslogtreecommitdiffstats
path: root/libstdc++/include/cstdio
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-06-17 23:31:21 +0000
committerDan Albert <danalbert@google.com>2014-06-17 17:37:06 -0700
commit9635046e53e14ff44348853a9cacdffd444b35ae (patch)
tree9f2a9c023d1e981cedc9811e25035f82783c092c /libstdc++/include/cstdio
parent1ef3ba2b4fd2408cdd78828ec2930ce31ce8cee7 (diff)
downloadbionic-9635046e53e14ff44348853a9cacdffd444b35ae.zip
bionic-9635046e53e14ff44348853a9cacdffd444b35ae.tar.gz
bionic-9635046e53e14ff44348853a9cacdffd444b35ae.tar.bz2
Hide declaration of gets(3) for C11 and later.
gets(3) was removed from C11. This reverts commit 1291680c2a0c23b2163198d27e00261ca206298b. Bug: 14500800 Change-Id: I5e5146bdbb80f2be818a17f287b112bab37d1f6d
Diffstat (limited to 'libstdc++/include/cstdio')
-rw-r--r--libstdc++/include/cstdio2
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++/include/cstdio b/libstdc++/include/cstdio
index 3c8b5c6..2948d85 100644
--- a/libstdc++/include/cstdio
+++ b/libstdc++/include/cstdio
@@ -63,7 +63,9 @@ using ::ftell;
using ::fwrite;
using ::getc;
using ::getchar;
+#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L
using ::gets;
+#endif
using ::perror;
using ::printf;
using ::putc;