mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 09:13:38 +08:00
DE 23
llvm-svn: 111746
This commit is contained in:
@@ -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<Rep, Period>& rel_time);
|
||||
|
||||
#pragma GCC system_header
|
||||
|
||||
#define __STDCPP_THREADS __cplusplus
|
||||
#define __STDCPP_THREADS__ __cplusplus
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
|
||||
@@ -9,13 +9,13 @@
|
||||
|
||||
// <thread>
|
||||
|
||||
// #define __STDCPP_THREADS __cplusplus
|
||||
// #define __STDCPP_THREADS__ __cplusplus
|
||||
|
||||
#include <thread>
|
||||
|
||||
int main()
|
||||
{
|
||||
#ifndef __STDCPP_THREADS
|
||||
#error __STDCPP_THREADS is not defined
|
||||
#ifndef __STDCPP_THREADS__
|
||||
#error __STDCPP_THREADS__ is not defined
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user