enable freopen to make some guides on the internet work

This commit is contained in:
Johannes Kapfhammer 2019-10-28 21:28:31 +01:00
parent 080e3f1261
commit c0d288e9e8
1 changed files with 0 additions and 3 deletions

View File

@ -31,7 +31,6 @@ snprintf(char *buffer, std::size_t buf_size, const char *format, ...);
#define puts puts_is_evil
#define fputs fputs_is_evil
#define fgets fgets_is_evil
#define freopen freopen_is_evil
#define fopen fopen_is_evil
#define fclose fclose_is_evil
#define fflush fflush_is_evil
@ -48,8 +47,6 @@ snprintf(char *buffer, std::size_t buf_size, const char *format, ...);
[[deprecated("<cstdio> is evil. Use cin/cout.")]] char *
fgets(char *str, int count, FILE *stream);
[[deprecated("<cstdio> is evil. Use cin/cout.")]] std::FILE *
freopen(const char *filename, const char *mode, std::FILE *stream);
[[deprecated("<cstdio> is evil. Use cin/cout.")]] std::FILE *
fopen(const char *filename, const char *mode);
[[deprecated("<cstdio> is evil. Use cin/cout.")]] int
fclose(std::FILE *stream);