mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 12:02:36 +08:00
Fix breakage caused when _LIBCPP_HAS_THREAD_API_PTHREAD is manually defined
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@291298 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -894,7 +894,8 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Thread API
|
// Thread API
|
||||||
#if !defined(_LIBCPP_HAS_NO_THREADS)
|
#if !defined(_LIBCPP_HAS_NO_THREADS) && \
|
||||||
|
!defined(_LIBCPP_HAS_THREAD_API_PTHREAD)
|
||||||
# if defined(__FreeBSD__) || \
|
# if defined(__FreeBSD__) || \
|
||||||
defined(__Fuchsia__) || \
|
defined(__Fuchsia__) || \
|
||||||
defined(__NetBSD__) || \
|
defined(__NetBSD__) || \
|
||||||
@@ -902,9 +903,7 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
|
|||||||
defined(__APPLE__) || \
|
defined(__APPLE__) || \
|
||||||
defined(__CloudABI__) || \
|
defined(__CloudABI__) || \
|
||||||
defined(__sun__)
|
defined(__sun__)
|
||||||
# ifndef _LIBCPP_HAS_THREAD_API_PTHREAD
|
# define _LIBCPP_HAS_THREAD_API_PTHREAD
|
||||||
# define _LIBCPP_HAS_THREAD_API_PTHREAD
|
|
||||||
# endif
|
|
||||||
# else
|
# else
|
||||||
# error "No thread API"
|
# error "No thread API"
|
||||||
# endif // _LIBCPP_HAS_THREAD_API
|
# endif // _LIBCPP_HAS_THREAD_API
|
||||||
|
|||||||
Reference in New Issue
Block a user