mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Closes #717
Failure to compile to systems that don't have a valid definition of strerror_r.
This commit is contained in:
parent
4131347079
commit
3fbac8e2b7
@ -397,6 +397,11 @@ inline std::string errno_to_string(char buf[256], int res)
|
||||
return "Unknown error";
|
||||
}
|
||||
|
||||
inline std::string errno_to_string(char buf[256], const fmt::internal::Null<> &/*tag*/)
|
||||
{
|
||||
return errno_to_string(buf, -1);
|
||||
}
|
||||
|
||||
// Return errno string (thread safe)
|
||||
inline std::string errno_str(int err_num)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user