File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -444,22 +444,12 @@ FMT_CONSTEXPR ansi_color_escape<Char> make_emphasis(emphasis em) FMT_NOEXCEPT {
444444 return ansi_color_escape<Char>(em);
445445}
446446
447- template <typename Char>
448- inline void fputs (const Char* chars, FILE* stream) FMT_NOEXCEPT {
449- std::fputs (chars, stream);
450- }
451-
452- template <>
453- inline void fputs<wchar_t >(const wchar_t * chars, FILE* stream) FMT_NOEXCEPT {
454- std::fputws (chars, stream);
455- }
456-
457447template <typename Char> inline void reset_color (FILE* stream) FMT_NOEXCEPT {
458- fputs (internal::data::reset_color, stream);
448+ std::fwrite (internal::data::reset_color, 1 , sizeof (internal::data::reset_color) , stream);
459449}
460450
461451template <> inline void reset_color<wchar_t >(FILE* stream) FMT_NOEXCEPT {
462- fputs (internal::data::wreset_color, stream);
452+ std::fputws (internal::data::wreset_color, stream);
463453}
464454
465455template <typename Char>
You can’t perform that action at this time.
0 commit comments