aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/27_io
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2013-04-26 11:32:49 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2013-04-26 11:32:49 +0000
commitacd1cc4b295ac00fffe0d727291b6fdf58f3392d (patch)
treeee061557a7962bb3b94ae14089407f7a9d4d5e17 /libstdc++-v3/testsuite/27_io
parentdd366ec309a4afc80ce5b6442321eb847b1b851f (diff)
downloadgcc-acd1cc4b295ac00fffe0d727291b6fdf58f3392d.zip
gcc-acd1cc4b295ac00fffe0d727291b6fdf58f3392d.tar.gz
gcc-acd1cc4b295ac00fffe0d727291b6fdf58f3392d.tar.bz2
cstdio (gets): Provide only in C++98 and C++11.
2013-04-26 Paolo Carlini <paolo.carlini@oracle.com> * include/c_global/cstdio (gets): Provide only in C++98 and C++11. * include/c_std/cstdio (gets): Likewise. * testsuite/27_io/headers/cstdio/functions_std.cc: Adjust. From-SVN: r198335
Diffstat (limited to 'libstdc++-v3/testsuite/27_io')
-rw-r--r--libstdc++-v3/testsuite/27_io/headers/cstdio/functions_std.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/27_io/headers/cstdio/functions_std.cc b/libstdc++-v3/testsuite/27_io/headers/cstdio/functions_std.cc
index 19a80b7..c5d787f 100644
--- a/libstdc++-v3/testsuite/27_io/headers/cstdio/functions_std.cc
+++ b/libstdc++-v3/testsuite/27_io/headers/cstdio/functions_std.cc
@@ -24,8 +24,10 @@ namespace gnu
using std::clearerr;
using std::tmpfile;
using std::fgets;
- using std::fscanf;
- using std::gets;
+ using std::fscanf;
+#if __cplusplus <= 201103L
+ using std::gets;
+#endif
using std::rename;
using std::fclose;
using std::fopen;