summaryrefslogtreecommitdiffstats
path: root/libcxx/include/thread
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-07-30 14:32:47 +0000
committerNico Weber <nicolasweber@gmx.de>2019-07-30 14:32:47 +0000
commit9aae539d4cfbf68a367360617cefc5a2c0389b6a (patch)
tree9cc90d4ccdd336b7a7bd0171abbe06786128b3ad /libcxx/include/thread
parent9ad716ed3998eb41033a59e60127669cd169b049 (diff)
downloadbcm5719-llvm-9aae539d4cfbf68a367360617cefc5a2c0389b6a.tar.gz
bcm5719-llvm-9aae539d4cfbf68a367360617cefc5a2c0389b6a.zip
libcxx: Define __STDCPP_THREADS__ to 1, not to __cplusplus.
[cpp.predefined]p2: __STDCPP_THREADS__ Defined, and has the value integer literal 1, if and only if a program can have more than one thread of execution . Also define it only if it's not defined already, since it's supposed to be defined by the compiler. Also move it from thread to __config (which requires setting it only if _LIBCPP_HAS_NO_THREADS is not defined). Part of PR33230. The intent is to eventually make the compiler define this instead. llvm-svn: 367316
Diffstat (limited to 'libcxx/include/thread')
-rw-r--r--libcxx/include/thread4
1 files changed, 0 insertions, 4 deletions
diff --git a/libcxx/include/thread b/libcxx/include/thread
index 3d8d2ac9ce5..4277bc90b36 100644
--- a/libcxx/include/thread
+++ b/libcxx/include/thread
@@ -14,8 +14,6 @@
thread synopsis
-#define __STDCPP_THREADS__ __cplusplus
-
namespace std
{
@@ -107,8 +105,6 @@ void sleep_for(const chrono::duration<Rep, Period>& rel_time);
_LIBCPP_PUSH_MACROS
#include <__undef_macros>
-#define __STDCPP_THREADS__ __cplusplus
-
#ifdef _LIBCPP_HAS_NO_THREADS
#error <thread> is not supported on this single threaded system
#else // !_LIBCPP_HAS_NO_THREADS
OpenPOWER on IntegriCloud