mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-29 12:03:53 +00: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";
|
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)
|
// Return errno string (thread safe)
|
||||||
inline std::string errno_str(int err_num)
|
inline std::string errno_str(int err_num)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user