File tree Expand file tree Collapse file tree 5 files changed +34
-38
lines changed Expand file tree Collapse file tree 5 files changed +34
-38
lines changed Original file line number Diff line number Diff line change 2323# pragma GCC system_header
2424#endif
2525
26- #if _LIBCPP_STD_VER >= 17
27-
28- using __standard_header_ccomplex
29- # if _LIBCPP_STD_VER >= 20
30- _LIBCPP_DEPRECATED_ (" removed in C++20. Include <complex> instead." )
31- # else
32- _LIBCPP_DEPRECATED_ (" Include <complex> instead." )
33- # endif
34- = void ;
26+ #if _LIBCPP_STD_VER >= 20
27+
28+ using __standard_header_ccomplex _LIBCPP_DEPRECATED_ (" removed in C++20. Include <complex> instead." ) = void;
3529using __use_standard_header_ccomplex = __standard_header_ccomplex;
3630
31+ #else if _LIBCPP_STD_VER >= 17
32+
33+ using __standard_header_ccomplex _LIBCPP_DEPRECATED_ (" Include <complex> instead." ) = void;
34+ using __use_standard_header_ccomplex = __standard_header_ccomplex;
35+
3736#endif
3837
3938#endif // _LIBCPP_CCOMPLEX
Original file line number Diff line number Diff line change @@ -40,16 +40,15 @@ Macros:
4040#undef __alignof_is_defined
4141#define __alignof_is_defined 1
4242
43- #if _LIBCPP_STD_VER >= 17
43+ #if _LIBCPP_STD_VER >= 20
4444
45- using __standard_header_cstdalign
46- # if _LIBCPP_STD_VER >= 20
47- _LIBCPP_DEPRECATED_ (" removed in C++20." )
48- # else
49- _LIBCPP_DEPRECATED
50- # endif
51- = void ;
52- using __use_standard_header_cstdalign = __standard_header_cstdalign;
45+ using __standard_header_cstdalign _LIBCPP_DEPRECATED_ (" removed in C++20." ) = void;
46+ using __use_standard_header_cstdalign = __standard_header_cstdalign;
47+
48+ #else if _LIBCPP_STD_VER >= 17
49+
50+ using __standard_header_cstdalign _LIBCPP_DEPRECATED = void ;
51+ using __use_standard_header_cstdalign = __standard_header_cstdalign;
5352
5453#endif
5554
Original file line number Diff line number Diff line change @@ -28,16 +28,15 @@ Macros:
2828#undef __bool_true_false_are_defined
2929#define __bool_true_false_are_defined 1
3030
31- #if _LIBCPP_STD_VER >= 17
32-
33- using __standard_header_cstdbool
34- # if _LIBCPP_STD_VER >= 20
35- _LIBCPP_DEPRECATED_ (" removed in C++20." )
36- # else
37- _LIBCPP_DEPRECATED
38- # endif
39- = void ;
40- using __use_standard_header_cstdbool = __standard_header_cstdbool;
31+ #if _LIBCPP_STD_VER >= 20
32+
33+ using __standard_header_cstdbool _LIBCPP_DEPRECATED_ (" removed in C++20." ) = void;
34+ using __use_standard_header_cstdbool = __standard_header_cstdbool;
35+
36+ #else if _LIBCPP_STD_VER >= 17
37+
38+ using __standard_header_cstdbool _LIBCPP_DEPRECATED = void ;
39+ using __use_standard_header_cstdbool = __standard_header_cstdbool;
4140
4241#endif
4342
Original file line number Diff line number Diff line change 2525# pragma GCC system_header
2626#endif
2727
28- #if _LIBCPP_STD_VER >= 17
29-
30- using __standard_header_ctgmath
31- # if _LIBCPP_STD_VER >= 20
32- _LIBCPP_DEPRECATED_ (" removed in C++20. Include <cmath> and <complex> instead." )
33- # else
34- _LIBCPP_DEPRECATED_ (" Include <cmath> and <complex> instead." )
35- # endif
36- = void ;
28+ #if _LIBCPP_STD_VER >= 20
29+
30+ using __standard_header_ctgmath _LIBCPP_DEPRECATED_ (" removed in C++20. Include <cmath> and <complex> instead." ) = void;
31+ using __use_standard_header_ctgmath = __standard_header_ctgmath;
32+
33+ #else if _LIBCPP_STD_VER >= 17
34+
35+ using __standard_header_ctgmath _LIBCPP_DEPRECATED_ (" Include <cmath> and <complex> instead." ) = void;
3736using __use_standard_header_ctgmath = __standard_header_ctgmath;
3837
3938#endif
Original file line number Diff line number Diff line change 1111// Even though <stdalign.h> is not provided by libc++,
1212// we still test that using it with libc++ on the search path will work.
1313
14- // TODO: GCC doesn't provide a proper <stdalign.h>.
14+ // TODO: GCC doesn't provide a proper <stdalign.h> for C++ until 15 .
1515// UNSUPPORTED: gcc
1616
1717#include < stdalign.h>
You can’t perform that action at this time.
0 commit comments