|
50 | 50 | # error "__cpp_lib_constexpr_charconv should not be defined before c++23" |
51 | 51 | # endif |
52 | 52 |
|
53 | | -# if !defined(_LIBCPP_VERSION) |
| 53 | +# if defined(TEST_LONG_DOUBLE_IS_DOUBLE) |
54 | 54 | # ifndef __cpp_lib_to_chars |
55 | 55 | # error "__cpp_lib_to_chars should be defined in c++17" |
56 | 56 | # endif |
57 | 57 | # if __cpp_lib_to_chars != 201611L |
58 | 58 | # error "__cpp_lib_to_chars should have the value 201611L in c++17" |
59 | 59 | # endif |
60 | | -# else // _LIBCPP_VERSION |
| 60 | +# else |
61 | 61 | # ifdef __cpp_lib_to_chars |
62 | | -# error "__cpp_lib_to_chars should not be defined because it is unimplemented in libc++!" |
| 62 | +# error "__cpp_lib_to_chars should not be defined when the requirement 'defined(TEST_LONG_DOUBLE_IS_DOUBLE)' is not met!" |
63 | 63 | # endif |
64 | 64 | # endif |
65 | 65 |
|
|
69 | 69 | # error "__cpp_lib_constexpr_charconv should not be defined before c++23" |
70 | 70 | # endif |
71 | 71 |
|
72 | | -# if !defined(_LIBCPP_VERSION) |
| 72 | +# if defined(TEST_LONG_DOUBLE_IS_DOUBLE) |
73 | 73 | # ifndef __cpp_lib_to_chars |
74 | 74 | # error "__cpp_lib_to_chars should be defined in c++20" |
75 | 75 | # endif |
76 | 76 | # if __cpp_lib_to_chars != 201611L |
77 | 77 | # error "__cpp_lib_to_chars should have the value 201611L in c++20" |
78 | 78 | # endif |
79 | | -# else // _LIBCPP_VERSION |
| 79 | +# else |
80 | 80 | # ifdef __cpp_lib_to_chars |
81 | | -# error "__cpp_lib_to_chars should not be defined because it is unimplemented in libc++!" |
| 81 | +# error "__cpp_lib_to_chars should not be defined when the requirement 'defined(TEST_LONG_DOUBLE_IS_DOUBLE)' is not met!" |
82 | 82 | # endif |
83 | 83 | # endif |
84 | 84 |
|
|
91 | 91 | # error "__cpp_lib_constexpr_charconv should have the value 202207L in c++23" |
92 | 92 | # endif |
93 | 93 |
|
94 | | -# if !defined(_LIBCPP_VERSION) |
| 94 | +# if defined(TEST_LONG_DOUBLE_IS_DOUBLE) |
95 | 95 | # ifndef __cpp_lib_to_chars |
96 | 96 | # error "__cpp_lib_to_chars should be defined in c++23" |
97 | 97 | # endif |
98 | 98 | # if __cpp_lib_to_chars != 201611L |
99 | 99 | # error "__cpp_lib_to_chars should have the value 201611L in c++23" |
100 | 100 | # endif |
101 | | -# else // _LIBCPP_VERSION |
| 101 | +# else |
102 | 102 | # ifdef __cpp_lib_to_chars |
103 | | -# error "__cpp_lib_to_chars should not be defined because it is unimplemented in libc++!" |
| 103 | +# error "__cpp_lib_to_chars should not be defined when the requirement 'defined(TEST_LONG_DOUBLE_IS_DOUBLE)' is not met!" |
104 | 104 | # endif |
105 | 105 | # endif |
106 | 106 |
|
|
113 | 113 | # error "__cpp_lib_constexpr_charconv should have the value 202207L in c++26" |
114 | 114 | # endif |
115 | 115 |
|
116 | | -# if !defined(_LIBCPP_VERSION) |
| 116 | +# if defined(TEST_LONG_DOUBLE_IS_DOUBLE) |
117 | 117 | # ifndef __cpp_lib_to_chars |
118 | 118 | # error "__cpp_lib_to_chars should be defined in c++26" |
119 | 119 | # endif |
120 | 120 | # if __cpp_lib_to_chars != 202306L |
121 | 121 | # error "__cpp_lib_to_chars should have the value 202306L in c++26" |
122 | 122 | # endif |
123 | | -# else // _LIBCPP_VERSION |
| 123 | +# else |
124 | 124 | # ifdef __cpp_lib_to_chars |
125 | | -# error "__cpp_lib_to_chars should not be defined because it is unimplemented in libc++!" |
| 125 | +# error "__cpp_lib_to_chars should not be defined when the requirement 'defined(TEST_LONG_DOUBLE_IS_DOUBLE)' is not met!" |
126 | 126 | # endif |
127 | 127 | # endif |
128 | 128 |
|
|
0 commit comments