Merge pull request #314 from osx2000/master

Compatibility with Oracle Developer Studio 12.5 on  Solaris
This commit is contained in:
Gabi Melman 2016-11-11 15:38:32 +02:00 committed by GitHub
commit 4e768c146b
2 changed files with 2 additions and 2 deletions

View File

@ -359,7 +359,7 @@ inline void spdlog::details::async_log_helper::sleep_or_yield(const spdlog::log_
// yield upto 150 micros
if (time_since_op <= microseconds(100))
return yield();
return std::this_thread::yield();
// sleep for 20 ms upto 200 ms

View File

@ -343,7 +343,7 @@ inline std::string errno_str(int err_num)
else
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
if (strerror_r(err_num, buf, buf_size) == 0)