Skip to content

Commit 0ee9ad8

Browse files
authored
Merge pull request #290 from thebrandre/pr/fix-clang-win
Fix linker error with clang-cl #286
2 parents 3071b9e + 47fd6b8 commit 0ee9ad8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/boost/thread/detail/config.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@
470470
#else //Use default
471471
# if defined(BOOST_THREAD_PLATFORM_WIN32)
472472
# if defined(BOOST_MSVC) || defined(BOOST_INTEL_WIN) \
473-
|| defined(__MINGW32__) || defined(MINGW32) || defined(BOOST_MINGW32)
473+
|| defined(__MINGW32__) || defined(MINGW32) || defined(BOOST_MINGW32) \
474+
|| (defined(_MSC_VER) && defined(__clang__))
474475
//For compilers supporting auto-tss cleanup
475476
//with Boost.Threads lib, use Boost.Threads lib
476477
# define BOOST_THREAD_USE_LIB

0 commit comments

Comments
 (0)