mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Fixed issue #245
This commit is contained in:
parent
01601cef85
commit
1ac68e399a
@ -264,7 +264,7 @@ inline std::string errno_str(int err_num)
|
||||
else
|
||||
return "Unkown error";
|
||||
|
||||
#elif (_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE // posix version
|
||||
#elif defined(__APPLE__) || ((_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE) // posix version
|
||||
if (strerror_r(err_num, buf, buf_size) == 0)
|
||||
return std::string(buf);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user