mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-26 23:49:03 +08:00
extended conditional compilation to __SUNPRO_CC
This commit is contained in:
parent
e9fc4ac095
commit
3cd497ee95
@ -343,7 +343,7 @@ inline std::string errno_str(int err_num)
|
|||||||
else
|
else
|
||||||
return "Unkown error";
|
return "Unkown error";
|
||||||
|
|
||||||
#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(ANDROID) || \
|
#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(ANDROID) || defined(__SUNPRO_CC) || \
|
||||||
((_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE) // posix version
|
((_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE) // posix version
|
||||||
|
|
||||||
if (strerror_r(err_num, buf, buf_size) == 0)
|
if (strerror_r(err_num, buf, buf_size) == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user