Am Sa., 10. Okt. 2020 um 19:41 Uhr schrieb Bruno Haible <br...@clisp.org>: > > Hi Marc, > > > Is there a special Gnulib way (or Autoconf macro) for the following test: > > > > #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && > > !defined (__STD_NO_ATOMICS__) > > > > I am asking because there may be non-C11 compilers that nevertheless > > understand _Atomic. > > And there may be C11 compilers which don't support _Atomic and nevertheless > dont't define __STD_NO_ATOMICS__. > > So, indeed it would be useful to have an Autoconf macro that tests whether > _Atomic can be used.
If someone is able to provide such a macro for Gnulib, I would replace my check with this macro.