From c0d288e9e8f30fa12eb6b9ce71333533799a4d92 Mon Sep 17 00:00:00 2001 From: Johannes Kapfhammer Date: Mon, 28 Oct 2019 21:28:31 +0100 Subject: [PATCH] enable freopen to make some guides on the internet work --- include/bits/soi-deprecate.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/bits/soi-deprecate.hpp b/include/bits/soi-deprecate.hpp index e1c9230..f87dddf 100644 --- a/include/bits/soi-deprecate.hpp +++ b/include/bits/soi-deprecate.hpp @@ -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(" is evil. Use cin/cout.")]] char * fgets(char *str, int count, FILE *stream); [[deprecated(" is evil. Use cin/cout.")]] std::FILE * -freopen(const char *filename, const char *mode, std::FILE *stream); -[[deprecated(" is evil. Use cin/cout.")]] std::FILE * fopen(const char *filename, const char *mode); [[deprecated(" is evil. Use cin/cout.")]] int fclose(std::FILE *stream);