[libcxx-commits] [PATCH] D92349: [libcxxabi] remove checks for __STDCPP_THREADS__ as it is defined by compiler

Zequan Wu via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 30 14:09:51 PST 2020


zequanwu created this revision.
zequanwu added reviewers: rnk, alanphipps, dmajor.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
zequanwu requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92349

Files:
  libcxx/include/__config


Index: libcxx/include/__config
===================================================================
--- libcxx/include/__config
+++ libcxx/include/__config
@@ -1152,14 +1152,6 @@
        _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
-
 // The glibc and Bionic implementation of pthreads implements
 // pthread_mutex_destroy as nop for regular mutexes. Additionally, Win32
 // mutexes have no destroy mechanism.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92349.308478.patch
Type: text/x-patch
Size: 672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201130/edb12c7d/attachment.bin>


More information about the libcxx-commits mailing list