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. AFAICS, neither Autoconf, nor Gnulib, nor the autoconf-archive project have a test for this. Bruno