From 871f96eed3797061c8b1c82fb77d077d110a2da7 Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Mon, 30 Nov 2020 14:09:00 -0800 Subject: [PATCH] [libcxx] remove checks for __STDCPP_THREADS__ as it is defined by compiler Differential Revision: https://reviews.llvm.org/D92349 --- libcxx/include/__config | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libcxx/include/__config b/libcxx/include/__config index de40ffc..0b850f1 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -1152,10 +1152,6 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container( _LIBCPP_HAS_NO_THREADS is defined. #endif -#if defined(__STDCPP_THREADS__) && defined(_LIBCPP_HAS_NO_THREADS) -#error _LIBCPP_HAS_NO_THREADS cannot be set when __STDCPP_THREADS__ is set. -#endif - #if !defined(_LIBCPP_HAS_NO_THREADS) && !defined(__STDCPP_THREADS__) #define __STDCPP_THREADS__ 1 #endif -- 2.7.4