Skip to content

Commit

Permalink
Fixed commments
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Nov 30, 2024
1 parent a62b9d3 commit 3f54435
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/spdlog/sinks/stdout_sinks-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <io.h> // _get_osfhandle(..)
#include <stdio.h> // _fileno(..)
#endif // WIN32
#endif // _WIN32

namespace spdlog {

Expand All @@ -45,7 +45,7 @@ SPDLOG_INLINE stdout_sink_base<ConsoleMutex>::stdout_sink_base(FILE *file)
if (handle_ == INVALID_HANDLE_VALUE && file != stdout && file != stderr) {
throw_spdlog_ex("spdlog::stdout_sink_base: _get_osfhandle() failed", errno);
}
#endif // WIN32
#endif // _WIN32
}

template <typename ConsoleMutex>
Expand All @@ -69,7 +69,7 @@ SPDLOG_INLINE void stdout_sink_base<ConsoleMutex>::log(const details::log_msg &m
memory_buf_t formatted;
formatter_->format(msg, formatted);
details::os::fwrite_bytes(formatted.data(), formatted.size(), file_);
#endif // WIN32
#endif // _WIN32
::fflush(file_); // flush every line to terminal
}

Expand Down

0 comments on commit 3f54435

Please sign in to comment.