1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-04-29 20:13:52 +00:00

snprinf for msc ver

This commit is contained in:
gabime 2014-03-02 16:31:13 +02:00
parent b396ff85a7
commit 2ac214aed8
5 changed files with 18 additions and 13 deletions

View File

@ -31,3 +31,8 @@ inline std::tm c11log::details::os::localtime()
std::time_t now_t = time(0);
return localtime(now_t);
}
// Take care of snprintf in visual studio
#ifdef _MSC_VER
#define snprintf _snprintf
#endif