Skip to content

Commit 1b89a64

Browse files
committed
Add missing inline to boost::detail::lw_thread_routine to prevent multiple definition errors.
1 parent 840e2ff commit 1b89a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/smart_ptr/detail/lightweight_thread.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class lw_abstract_thread
104104

105105
#if defined( BOOST_HAS_PTHREADS )
106106

107-
extern "C" void * lw_thread_routine( void * pv )
107+
extern "C" inline void * lw_thread_routine( void * pv )
108108
{
109109
std::unique_ptr<lw_abstract_thread> pt( static_cast<lw_abstract_thread *>( pv ) );
110110

@@ -115,7 +115,7 @@ extern "C" void * lw_thread_routine( void * pv )
115115

116116
#else
117117

118-
unsigned __stdcall lw_thread_routine( void * pv )
118+
inline unsigned __stdcall lw_thread_routine( void * pv )
119119
{
120120
std::unique_ptr<lw_abstract_thread> pt( static_cast<lw_abstract_thread *>( pv ) );
121121

0 commit comments

Comments
 (0)