summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/c_std
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/c_std')
-rw-r--r--libstdc++-v3/include/c_std/cstdio6
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;