Skip to content

Commit

Permalink
Add missing inline to boost::detail::lw_thread_routine to prevent m…
Browse files Browse the repository at this point in the history
…ultiple definition errors.
  • Loading branch information
pdimov committed Jan 7, 2025
1 parent 840e2ff commit 1b89a64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/smart_ptr/detail/lightweight_thread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class lw_abstract_thread

#if defined( BOOST_HAS_PTHREADS )

extern "C" void * lw_thread_routine( void * pv )
extern "C" inline void * lw_thread_routine( void * pv )
{
std::unique_ptr<lw_abstract_thread> pt( static_cast<lw_abstract_thread *>( pv ) );

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

#else

unsigned __stdcall lw_thread_routine( void * pv )
inline unsigned __stdcall lw_thread_routine( void * pv )
{
std::unique_ptr<lw_abstract_thread> pt( static_cast<lw_abstract_thread *>( pv ) );

Expand Down

0 comments on commit 1b89a64

Please sign in to comment.