File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 2424#endif
2525
2626#ifdef __cplusplus
27- # include < ccomplex>
27+ # if _LIBCPP_STD_VER >= 17
28+ # include < complex>
29+ # else
30+ # include < ccomplex>
31+ # endif
2832#elif __has_include_next(<complex.h>)
2933# include_next <complex .h>
3034#endif
Original file line number Diff line number Diff line change 1818
1919*/
2020
21- #include < ccomplex>
21+ #if _LIBCPP_STD_VER >= 17
22+ # include < complex>
23+ #else
24+ # include < ccomplex>
25+ #endif
26+
2227#include < cmath>
2328
2429#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Original file line number Diff line number Diff line change 2424#endif
2525
2626#ifdef __cplusplus
27- # include < ctgmath>
27+ # if _LIBCPP_STD_VER >= 17
28+ # include < complex>
29+ # include < cmath>
30+ # else
31+ # include < ctgmath>
32+ # endif
2833#else
2934# if __has_include_next(<tgmath.h>)
3035# include_next <tgmath.h>
Original file line number Diff line number Diff line change 1515#include " test_macros.h"
1616
1717#if TEST_STD_VER >= 20
18- // expected-warning {{'__standard_header_ccomplex' is deprecated: removed in C++20}}
1918// expected-warning {{'__standard_header_ctgmath' is deprecated: removed in C++20}}
2019
2120# include < ctgmath>
2221#else
23- // expected-warning {{'__standard_header_ccomplex' is deprecated}}
2422// expected-warning {{'__standard_header_ctgmath' is deprecated}}
2523
2624# include < ctgmath>
You can’t perform that action at this time.
0 commit comments