* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198335
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
+
2013-04-25 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/57065
#undef ftell
#undef fwrite
#undef getc
-#undef gets
+#if __cplusplus <= 201103L
+# undef gets
+#endif
#undef perror
#undef printf
#undef putc
using ::fwrite;
using ::getc;
using ::getchar;
+#if __cplusplus <= 201103L
using ::gets;
+#endif
using ::perror;
using ::printf;
using ::putc;
#undef fwrite
#undef getc
#undef getchar
-#undef gets
+#if __cplusplus <= 201103L
+# undef gets
+#endif
#undef perror
#undef printf
#undef putc
using ::fwrite;
using ::getc;
using ::getchar;
+#if __cplusplus <= 201103L
using ::gets;
+#endif
using ::perror;
using ::printf;
using ::putc;
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;