DE 23
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a2523b201
commit
a785e4e469
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
thread synopsis
|
thread synopsis
|
||||||
|
|
||||||
#define __STDCPP_THREADS __cplusplus
|
#define __STDCPP_THREADS__ __cplusplus
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
@ -99,7 +99,7 @@ void sleep_for(const chrono::duration<Rep, Period>& rel_time);
|
|||||||
|
|
||||||
#pragma GCC system_header
|
#pragma GCC system_header
|
||||||
|
|
||||||
#define __STDCPP_THREADS __cplusplus
|
#define __STDCPP_THREADS__ __cplusplus
|
||||||
|
|
||||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||||
|
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
// <thread>
|
// <thread>
|
||||||
|
|
||||||
// #define __STDCPP_THREADS __cplusplus
|
// #define __STDCPP_THREADS__ __cplusplus
|
||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
#ifndef __STDCPP_THREADS
|
#ifndef __STDCPP_THREADS__
|
||||||
#error __STDCPP_THREADS is not defined
|
#error __STDCPP_THREADS__ is not defined
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user