From 5573eac65f4346eec2c205f81495de75efe3fdd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 7 Aug 2006 14:08:45 +0000 Subject: [PATCH] Added inline to functions to avoid linker errors [SVN r34838] --- include/boost/interprocess/errors.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/interprocess/errors.hpp b/include/boost/interprocess/errors.hpp index 2f24d6b..4e615e7 100644 --- a/include/boost/interprocess/errors.hpp +++ b/include/boost/interprocess/errors.hpp @@ -10,6 +10,7 @@ // ////////////////////////////////////////////////////////////////////////////// // +// Copyright © 2006 Ion Gaztañaga // Copyright © 2002 Beman Dawes // Copyright © 2001 Dietmar Kühl // Use, modification, and distribution is subject to the Boost Software @@ -62,7 +63,7 @@ static inline int system_error_code() // artifact of POSIX and WINDOWS error rep # ifdef BOOST_WINDOWS -void fill_system_message(int sys_err_code, std::string &str) +inline void fill_system_message(int sys_err_code, std::string &str) { void *lpMsgBuf; winapi::format_message( @@ -83,7 +84,7 @@ void fill_system_message(int sys_err_code, std::string &str) str.erase( str.size()-1 ); } # else -void fill_system_message( int system_error, std::string &str) +inline void fill_system_message( int system_error, std::string &str) { str = std::strerror(system_error); } # endif