diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-04-26 11:32:49 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-04-26 11:32:49 +0000 |
commit | acd1cc4b295ac00fffe0d727291b6fdf58f3392d (patch) | |
tree | ee061557a7962bb3b94ae14089407f7a9d4d5e17 /libstdc++-v3/include/c_std | |
parent | dd366ec309a4afc80ce5b6442321eb847b1b851f (diff) | |
download | gcc-acd1cc4b295ac00fffe0d727291b6fdf58f3392d.tar.gz |
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/include/c_std')
-rw-r--r-- | libstdc++-v3/include/c_std/cstdio | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/include/c_std/cstdio b/libstdc++-v3/include/c_std/cstdio index e85bd834af2..273383e6999 100644 --- a/libstdc++-v3/include/c_std/cstdio +++ b/libstdc++-v3/include/c_std/cstdio @@ -70,7 +70,9 @@ extern "C" char* gets (char* __s) __attribute__((deprecated)); #undef fwrite #undef getc #undef getchar -#undef gets +#if __cplusplus <= 201103L +# undef gets +#endif #undef perror #undef printf #undef putc @@ -117,7 +119,9 @@ namespace std using ::fwrite; using ::getc; using ::getchar; +#if __cplusplus <= 201103L using ::gets; +#endif using ::perror; using ::printf; using ::putc; |