Skip to content

Commit e9ee517

Browse files
committed
Support using MinGW POSIX threads on Windows
llvm-svn: 302617
1 parent 8a64fd7 commit e9ee517

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcxx/include/__config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,8 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
987987
defined(__linux__) || \
988988
defined(__APPLE__) || \
989989
defined(__CloudABI__) || \
990-
defined(__sun__)
990+
defined(__sun__) || \
991+
defined(__WINPTHREADS_VERSION)
991992
# define _LIBCPP_HAS_THREAD_API_PTHREAD
992993
# elif defined(_LIBCPP_WIN32API)
993994
# define _LIBCPP_HAS_THREAD_API_WIN32

0 commit comments

Comments
 (0)