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:
parent
b396ff85a7
commit
2ac214aed8
@ -31,3 +31,8 @@ inline std::tm c11log::details::os::localtime()
|
|||||||
std::time_t now_t = time(0);
|
std::time_t now_t = time(0);
|
||||||
return localtime(now_t);
|
return localtime(now_t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Take care of snprintf in visual studio
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user