Support using MinGW POSIX threads on Windows

llvm-svn: 302617
This commit is contained in:
Eric Fiselier 2017-05-10 02:36:48 +00:00
parent 8a64fd71b9
commit e9ee517930
1 changed files with 2 additions and 1 deletions

View File

@ -987,7 +987,8 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
defined(__linux__) || \
defined(__APPLE__) || \
defined(__CloudABI__) || \
defined(__sun__)
defined(__sun__) || \
defined(__WINPTHREADS_VERSION)
# define _LIBCPP_HAS_THREAD_API_PTHREAD
# elif defined(_LIBCPP_WIN32API)
# define _LIBCPP_HAS_THREAD_API_WIN32