Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamesReynolds <JamesReynolds>2018-06-01 13:51:08 +0300
committerJamesReynolds <JamesReynolds>2018-06-01 13:53:46 +0300
commit3fbac8e2b7867611a2136d127fb83da768c731bc (patch)
treee7f9dd6be7c76d26c0bb5f37f1ab0409fd71059c
parent4131347079050e72997bafc69b493627f458fb47 (diff)
Closes #717
Failure to compile to systems that don't have a valid definition of strerror_r.
-rw-r--r--include/spdlog/details/os.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h
index a9246de2..08adca5d 100644
--- a/include/spdlog/details/os.h
+++ b/include/spdlog/details/os.h
@@ -397,6 +397,11 @@ inline std::string errno_to_string(char buf[256], int res)
return "Unknown error";
}
+inline std::string errno_to_string(char buf[256], const fmt::internal::Null<> &/*tag*/)
+{
+ return errno_to_string(buf, -1);
+}
+
// Return errno string (thread safe)
inline std::string errno_str(int err_num)
{