mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
gcc fix
This commit is contained in:
@@ -149,9 +149,9 @@ public:
|
||||
_dev.sputn(s.data(), s.size());
|
||||
}
|
||||
|
||||
void put_data(const char* p, std::size_t size)
|
||||
void put_data(const char* p, std::size_t data_size)
|
||||
{
|
||||
_dev.sputn(p, size);
|
||||
_dev.sputn(p, data_size);
|
||||
}
|
||||
|
||||
void put_str(const std::string& s)
|
||||
|
@@ -42,7 +42,7 @@ inline std::tm gmtime(const std::time_t &time_tt)
|
||||
gmtime_s(&tm, &time_tt);
|
||||
#else
|
||||
std::tm tm;
|
||||
lgmtime_r(&time_tt, &tm);
|
||||
gmtime_r(&time_tt, &tm);
|
||||
#endif
|
||||
return tm;
|
||||
}
|
||||
|
@@ -225,7 +225,6 @@ class r_formatter :public flag_formatter
|
||||
{
|
||||
void format(details::log_msg& msg) override
|
||||
{
|
||||
int hours = to12h(msg.tm_time);
|
||||
msg.formatted.put_int(to12h(msg.tm_time), 2);
|
||||
msg.formatted.putc(':');
|
||||
msg.formatted.put_int(msg.tm_time.tm_min, 2);
|
||||
|
Reference in New Issue
Block a user