mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Update daily_file_sink.h
This commit is contained in:
parent
af1785b897
commit
9fcf609b67
@ -59,26 +59,6 @@ struct daily_filename_format_calculator
|
|||||||
stream << std::put_time(&now_tm, file_path.c_str());
|
stream << std::put_time(&now_tm, file_path.c_str());
|
||||||
return stream.str();
|
return stream.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
#if defined __GNUC__
|
|
||||||
# pragma GCC diagnostic push
|
|
||||||
# pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static size_t strftime(char *str, size_t count, const char *format, const std::tm *time)
|
|
||||||
{
|
|
||||||
return std::strftime(str, count, format, time);
|
|
||||||
}
|
|
||||||
|
|
||||||
static size_t strftime(wchar_t *str, size_t count, const wchar_t *format, const std::tm *time)
|
|
||||||
{
|
|
||||||
return std::wcsftime(str, count, format, time);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
|
||||||
# pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user