Commit acd1cc4b by Paolo Carlini Committed by Paolo Carlini

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
parent dd366ec3
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> 2013-04-25 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/57065 PR libstdc++/57065
......
...@@ -69,7 +69,9 @@ extern "C" char* gets (char* __s) __attribute__((deprecated)); ...@@ -69,7 +69,9 @@ extern "C" char* gets (char* __s) __attribute__((deprecated));
#undef ftell #undef ftell
#undef fwrite #undef fwrite
#undef getc #undef getc
#undef gets #if __cplusplus <= 201103L
# undef gets
#endif
#undef perror #undef perror
#undef printf #undef printf
#undef putc #undef putc
...@@ -116,7 +118,9 @@ namespace std ...@@ -116,7 +118,9 @@ namespace std
using ::fwrite; using ::fwrite;
using ::getc; using ::getc;
using ::getchar; using ::getchar;
#if __cplusplus <= 201103L
using ::gets; using ::gets;
#endif
using ::perror; using ::perror;
using ::printf; using ::printf;
using ::putc; using ::putc;
......
...@@ -70,7 +70,9 @@ extern "C" char* gets (char* __s) __attribute__((deprecated)); ...@@ -70,7 +70,9 @@ extern "C" char* gets (char* __s) __attribute__((deprecated));
#undef fwrite #undef fwrite
#undef getc #undef getc
#undef getchar #undef getchar
#undef gets #if __cplusplus <= 201103L
# undef gets
#endif
#undef perror #undef perror
#undef printf #undef printf
#undef putc #undef putc
...@@ -117,7 +119,9 @@ namespace std ...@@ -117,7 +119,9 @@ namespace std
using ::fwrite; using ::fwrite;
using ::getc; using ::getc;
using ::getchar; using ::getchar;
#if __cplusplus <= 201103L
using ::gets; using ::gets;
#endif
using ::perror; using ::perror;
using ::printf; using ::printf;
using ::putc; using ::putc;
......
...@@ -24,8 +24,10 @@ namespace gnu ...@@ -24,8 +24,10 @@ namespace gnu
using std::clearerr; using std::clearerr;
using std::tmpfile; using std::tmpfile;
using std::fgets; using std::fgets;
using std::fscanf; using std::fscanf;
using std::gets; #if __cplusplus <= 201103L
using std::gets;
#endif
using std::rename; using std::rename;
using std::fclose; using std::fclose;
using std::fopen; using std::fopen;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment