Navigation Menu

Skip to content

Commit

Permalink
Update strict_fstream.hpp
Browse files Browse the repository at this point in the history
fix zstr on mac
  • Loading branch information
rob-p committed Feb 13, 2018
1 parent fdb7dcc commit eee27d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zstr/strict_fstream.hpp
Expand Up @@ -27,7 +27,7 @@ static std::string strerror()
{
buff = "Unknown error";
}
#elif (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE
#elif __APPLE__ || (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE
// XSI-compliant strerror_r()
if (strerror_r(errno, &buff[0], buff.size()) != 0)
{
Expand Down

0 comments on commit eee27d7

Please sign in to comment.