diff options
Diffstat (limited to 'system/include/libcxx/cstdio')
-rw-r--r-- | system/include/libcxx/cstdio | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/system/include/libcxx/cstdio b/system/include/libcxx/cstdio index 1cde3eee..ce3af4d9 100644 --- a/system/include/libcxx/cstdio +++ b/system/include/libcxx/cstdio @@ -74,7 +74,7 @@ int fputc(int c, FILE* stream); int fputs(const char* restrict s, FILE* restrict stream); int getc(FILE* stream); int getchar(void); -char* gets(char* s); +char* gets(char* s); // removed in C++14 int putc(int c, FILE* stream); int putchar(int c); int puts(const char* s); @@ -103,6 +103,11 @@ void perror(const char* s); #pragma GCC system_header #endif +// snprintf +#if defined(_LIBCPP_MSVCRT) +#include "support/win32/support.h" +#endif + #ifdef getc inline _LIBCPP_INLINE_VISIBILITY int __libcpp_getc(FILE* __stream) {return getc(__stream);} #undef getc @@ -153,7 +158,9 @@ using ::fputc; using ::fputs; using ::getc; using ::getchar; +#if _LIBCPP_STD_VER <= 11 using ::gets; +#endif using ::putc; using ::putchar; using ::puts; |