Update os.h

fixed issue #246
This commit is contained in:
Gabi Melman 2016-07-21 12:29:59 +03:00 committed by GitHub
parent 1ac68e399a
commit 28ebdad367

View File

@ -256,7 +256,7 @@ inline std::string filename_to_str(const filename_t& filename)
inline std::string errno_str(int err_num) inline std::string errno_str(int err_num)
{ {
char buf[256]; char buf[256];
constexpr auto buf_size = sizeof(buf); SPDLOG_CONSTEXPR auto buf_size = sizeof(buf);
#ifdef _WIN32 #ifdef _WIN32
if(strerror_s(buf, buf_size, err_num) == 0) if(strerror_s(buf, buf_size, err_num) == 0)