[libcxx] r302617 - Support using MinGW POSIX threads on Windows
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Tue May 9 19:36:48 PDT 2017
Author: ericwf
Date: Tue May 9 21:36:48 2017
New Revision: 302617
URL: http://llvm.org/viewvc/llvm-project?rev=302617&view=rev
Log:
Support using MinGW POSIX threads on Windows
Modified:
libcxx/trunk/include/__config
Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=302617&r1=302616&r2=302617&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Tue May 9 21:36:48 2017
@@ -987,7 +987,8 @@ _LIBCPP_FUNC_VIS extern "C" void __sanit
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
More information about the cfe-commits
mailing list