[libc++] Set feature-test macro __cpp_lib_atomic_float (#127559) · llvm/llvm-project@05cce88 (original) (raw)

`@@ -169,17 +169,11 @@

`

169

169

`# error "__cpp_lib_atomic_flag_test should have the value 201907L in c++20"

`

170

170

`# endif

`

171

171

``

172

``

`-

if !defined(_LIBCPP_VERSION)

`

173

``

`-

ifndef __cpp_lib_atomic_float

`

174

``

`-

error "__cpp_lib_atomic_float should be defined in c++20"

`

175

``

`-

endif

`

176

``

`-

if __cpp_lib_atomic_float != 201711L

`

177

``

`-

error "__cpp_lib_atomic_float should have the value 201711L in c++20"

`

178

``

`-

endif

`

179

``

`-

else // _LIBCPP_VERSION

`

180

``

`-

ifdef __cpp_lib_atomic_float

`

181

``

`-

error "__cpp_lib_atomic_float should not be defined because it is unimplemented in libc++!"

`

182

``

`-

endif

`

``

172

`+

ifndef __cpp_lib_atomic_float

`

``

173

`+

error "__cpp_lib_atomic_float should be defined in c++20"

`

``

174

`+

endif

`

``

175

`+

if __cpp_lib_atomic_float != 201711L

`

``

176

`+

error "__cpp_lib_atomic_float should have the value 201711L in c++20"

`

183

177

`# endif

`

184

178

``

185

179

`# ifndef __cpp_lib_atomic_is_always_lock_free

`

262

256

`# error "__cpp_lib_atomic_flag_test should have the value 201907L in c++23"

`

263

257

`# endif

`

264

258

``

265

``

`-

if !defined(_LIBCPP_VERSION)

`

266

``

`-

ifndef __cpp_lib_atomic_float

`

267

``

`-

error "__cpp_lib_atomic_float should be defined in c++23"

`

268

``

`-

endif

`

269

``

`-

if __cpp_lib_atomic_float != 201711L

`

270

``

`-

error "__cpp_lib_atomic_float should have the value 201711L in c++23"

`

271

``

`-

endif

`

272

``

`-

else // _LIBCPP_VERSION

`

273

``

`-

ifdef __cpp_lib_atomic_float

`

274

``

`-

error "__cpp_lib_atomic_float should not be defined because it is unimplemented in libc++!"

`

275

``

`-

endif

`

``

259

`+

ifndef __cpp_lib_atomic_float

`

``

260

`+

error "__cpp_lib_atomic_float should be defined in c++23"

`

``

261

`+

endif

`

``

262

`+

if __cpp_lib_atomic_float != 201711L

`

``

263

`+

error "__cpp_lib_atomic_float should have the value 201711L in c++23"

`

276

264

`# endif

`

277

265

``

278

266

`# ifndef __cpp_lib_atomic_is_always_lock_free

`

355

343

`# error "__cpp_lib_atomic_flag_test should have the value 201907L in c++26"

`

356

344

`# endif

`

357

345

``

358

``

`-

if !defined(_LIBCPP_VERSION)

`

359

``

`-

ifndef __cpp_lib_atomic_float

`

360

``

`-

error "__cpp_lib_atomic_float should be defined in c++26"

`

361

``

`-

endif

`

362

``

`-

if __cpp_lib_atomic_float != 201711L

`

363

``

`-

error "__cpp_lib_atomic_float should have the value 201711L in c++26"

`

364

``

`-

endif

`

365

``

`-

else // _LIBCPP_VERSION

`

366

``

`-

ifdef __cpp_lib_atomic_float

`

367

``

`-

error "__cpp_lib_atomic_float should not be defined because it is unimplemented in libc++!"

`

368

``

`-

endif

`

``

346

`+

ifndef __cpp_lib_atomic_float

`

``

347

`+

error "__cpp_lib_atomic_float should be defined in c++26"

`

``

348

`+

endif

`

``

349

`+

if __cpp_lib_atomic_float != 201711L

`

``

350

`+

error "__cpp_lib_atomic_float should have the value 201711L in c++26"

`

369

351

`# endif

`

370

352

``

371

353

`# ifndef __cpp_lib_atomic_is_always_lock_free

`