File tree 5 files changed +8
-10
lines changed
tests/std/tests/P0943R6_stdatomic_h
5 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 4
4
set (HEADERS
5
5
${CMAKE_CURRENT_LIST_DIR} /inc/__msvc_all_public_headers.hpp
6
6
${CMAKE_CURRENT_LIST_DIR} /inc/__msvc_chrono.hpp
7
+ ${CMAKE_CURRENT_LIST_DIR} /inc/__msvc_cxx_stdatomic.hpp
7
8
${CMAKE_CURRENT_LIST_DIR} /inc/__msvc_format_ucd_tables.hpp
8
9
${CMAKE_CURRENT_LIST_DIR} /inc/__msvc_int128.hpp
9
10
${CMAKE_CURRENT_LIST_DIR} /inc/__msvc_iter_core.hpp
@@ -191,7 +192,6 @@ set(HEADERS
191
192
${CMAKE_CURRENT_LIST_DIR} /inc/sstream
192
193
${CMAKE_CURRENT_LIST_DIR} /inc/stack
193
194
${CMAKE_CURRENT_LIST_DIR} /inc/stacktrace
194
- ${CMAKE_CURRENT_LIST_DIR} /inc/stdatomic.h
195
195
${CMAKE_CURRENT_LIST_DIR} /inc/stdexcept
196
196
${CMAKE_CURRENT_LIST_DIR} /inc/stop_token
197
197
${CMAKE_CURRENT_LIST_DIR} /inc/streambuf
Original file line number Diff line number Diff line change 139
139
#include < vector>
140
140
141
141
#ifndef _M_CEE_PURE
142
+ #include < __msvc_cxx_stdatomic.hpp>
142
143
#include < atomic>
143
144
#include < barrier>
144
145
#include < latch>
145
146
#include < semaphore>
146
- #ifndef __clang__ // TRANSITION, GH-2862
147
- #include < stdatomic.h>
148
- #endif // TRANSITION, GH-2862
149
147
#include < stop_token>
150
148
#endif // _M_CEE_PURE
151
149
Original file line number Diff line number Diff line change 1
- // stdatomic.h standard header
1
+ // __msvc_cxx_stdatomic.hpp internal header
2
2
3
3
// Copyright (c) Microsoft Corporation.
4
4
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
5
6
6
#pragma once
7
- #ifndef _STDATOMIC_H_
8
- #define _STDATOMIC_H_
7
+ #ifndef __MSVC_CXX_STDATOMIC_HPP
8
+ #define __MSVC_CXX_STDATOMIC_HPP
9
9
10
10
// see _STL_COMPILER_PREPROCESSOR in yvals_core.h
11
11
#if !defined(RC_INVOKED) && !defined(Q_MOC_RUN) && !defined(__midl)
@@ -136,4 +136,4 @@ _STL_RESTORE_CLANG_WARNINGS
136
136
#endif // ^^^ _HAS_CXX23 ^^^
137
137
138
138
#endif // !defined(RC_INVOKED) && !defined(Q_MOC_RUN) && !defined(__midl)
139
- #endif // _STDATOMIC_H_
139
+ #endif // __MSVC_CXX_STDATOMIC_HPP
Original file line number Diff line number Diff line change 6
6
"BuildAsHeaderUnits" : [
7
7
// "__msvc_all_public_headers.hpp", // for testing, not production
8
8
" __msvc_chrono.hpp" ,
9
+ " __msvc_cxx_stdatomic.hpp" ,
9
10
" __msvc_format_ucd_tables.hpp" ,
10
11
" __msvc_int128.hpp" ,
11
12
" __msvc_iter_core.hpp" ,
101
102
" sstream" ,
102
103
" stack" ,
103
104
" stacktrace" ,
104
- " stdatomic.h" ,
105
105
" stdexcept" ,
106
106
" stop_token" ,
107
107
" streambuf" ,
Original file line number Diff line number Diff line change 2
2
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3
3
4
4
#ifndef __clang__ // TRANSITION, GH-2862
5
- #include < stdatomic.h >
5
+ #include < __msvc_cxx_stdatomic.hpp >
6
6
7
7
static_assert (ATOMIC_BOOL_LOCK_FREE == 2 );
8
8
static_assert (ATOMIC_CHAR_LOCK_FREE == 2 );
You can’t perform that action at this time.
0 commit comments