summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/c_global/cstdio
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/c_global/cstdio')
-rw-r--r--libstdc++-v3/include/c_global/cstdio6
1 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/include/c_global/cstdio b/libstdc++-v3/include/c_global/cstdio
index fcbec0cf5b9..249a77968be 100644
--- a/libstdc++-v3/include/c_global/cstdio
+++ b/libstdc++-v3/include/c_global/cstdio
@@ -69,7 +69,9 @@ extern "C" char* gets (char* __s) __attribute__((deprecated));
#undef ftell
#undef fwrite
#undef getc
-#undef gets
+#if __cplusplus <= 201103L
+# undef gets
+#endif
#undef perror
#undef printf
#undef putc
@@ -116,7 +118,9 @@ namespace std
using ::fwrite;
using ::getc;
using ::getchar;
+#if __cplusplus <= 201103L
using ::gets;
+#endif
using ::perror;
using ::printf;
using ::putc;