From a785e4e4695f217f3bc2e60a90ab7ab0a86bb347 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 21 Aug 2010 21:01:59 +0000 Subject: [PATCH] DE 23 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111746 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/thread | 4 ++-- test/thread/macro.pass.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/thread b/include/thread index 6bf318929..dad1ed156 100644 --- a/include/thread +++ b/include/thread @@ -15,7 +15,7 @@ thread synopsis -#define __STDCPP_THREADS __cplusplus +#define __STDCPP_THREADS__ __cplusplus namespace std { @@ -99,7 +99,7 @@ void sleep_for(const chrono::duration& rel_time); #pragma GCC system_header -#define __STDCPP_THREADS __cplusplus +#define __STDCPP_THREADS__ __cplusplus _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/test/thread/macro.pass.cpp b/test/thread/macro.pass.cpp index 160877b52..cc0f237b3 100644 --- a/test/thread/macro.pass.cpp +++ b/test/thread/macro.pass.cpp @@ -9,13 +9,13 @@ // -// #define __STDCPP_THREADS __cplusplus +// #define __STDCPP_THREADS__ __cplusplus #include int main() { -#ifndef __STDCPP_THREADS -#error __STDCPP_THREADS is not defined +#ifndef __STDCPP_THREADS__ +#error __STDCPP_THREADS__ is not defined #endif }