mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-10-19 19:05:25 +02:00
Do not define pthread_* in lightweight_thread.hpp; mingw-w64 includes pthread.h in the standard library headers
This commit is contained in:
@@ -18,7 +18,7 @@ void f()
|
||||
int main()
|
||||
{
|
||||
int const N = 4;
|
||||
pthread_t th[ N ] = {};
|
||||
boost::detail::lw_thread_t th[ N ] = {};
|
||||
|
||||
for( int i = 0; i < N; ++i )
|
||||
{
|
||||
@@ -27,7 +27,7 @@ int main()
|
||||
|
||||
for( int i = 0; i < N; ++i )
|
||||
{
|
||||
pthread_join( th[ i ], 0 );
|
||||
boost::detail::lw_thread_join( th[ i ] );
|
||||
}
|
||||
|
||||
BOOST_TEST_EQ( count, N );
|
||||
|
Reference in New Issue
Block a user