From d977cedb78360ce880ff631da40d0da7de511d91 Mon Sep 17 00:00:00 2001 From: Michael Glassford Date: Wed, 8 Sep 2004 15:57:03 +0000 Subject: [PATCH] Fix gcc warning about inline function being marked as dllimport. [SVN r24975] --- include/boost/thread/exceptions.hpp | 2 +- src/exceptions.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/thread/exceptions.hpp b/include/boost/thread/exceptions.hpp index 9b4e9f93..45cf191f 100644 --- a/include/boost/thread/exceptions.hpp +++ b/include/boost/thread/exceptions.hpp @@ -34,7 +34,7 @@ protected: public: ~thread_exception() throw(); - int native_error() const { return m_sys_err; } + int native_error() const; const char* message() const; diff --git a/src/exceptions.cpp b/src/exceptions.cpp index 89e0b167..766a9387 100644 --- a/src/exceptions.cpp +++ b/src/exceptions.cpp @@ -82,6 +82,11 @@ thread_exception::~thread_exception() throw() { } +int thread_exception::native_error() const +{ + return m_sys_err; +} + const char* thread_exception::message() const { if (m_sys_err != 0)