From 4547523e194abd47db224f59dc62a91b7f9c319e Mon Sep 17 00:00:00 2001 From: vitaut Date: Sun, 15 Mar 2015 06:34:59 -0700 Subject: [PATCH] Make dummy strerror_r and strerror_s inline and remove old comment --- format.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/format.cc b/format.cc index da590548..423b38c6 100644 --- a/format.cc +++ b/format.cc @@ -87,10 +87,10 @@ using fmt::internal::Arg; // Dummy implementations of strerror_r and strerror_s called if corresponding // system functions are not available. -static fmt::internal::None strerror_r(int, char *, ...) { +static inline fmt::internal::None strerror_r(int, char *, ...) { return fmt::internal::None(); } -static fmt::internal::None strerror_s(char *, std::size_t, ...) { +static inline fmt::internal::None strerror_s(char *, std::size_t, ...) { return fmt::internal::None(); } @@ -151,7 +151,6 @@ int safe_strerror( int error_code, char *&buffer, std::size_t buffer_size) FMT_NOEXCEPT { assert(buffer != 0 && buffer_size != 0); - // strerror result handler. class StrError { private: int error_code_;