[libcxx] remove checks for __STDCPP_THREADS__ as it is defined by compiler
authorZequan Wu <zequanwu@google.com>
Mon, 30 Nov 2020 22:09:00 +0000 (14:09 -0800)
committerZequan Wu <zequanwu@google.com>
Tue, 1 Dec 2020 00:36:47 +0000 (16:36 -0800)
Differential Revision: https://reviews.llvm.org/D92349

libcxx/include/__config

index de40ffc..0b850f1 100644 (file)
@@ -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