bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [New module] Persistent Hash Array Mapped Tries (HAMTs)


From: Bruno Haible
Subject: Re: [New module] Persistent Hash Array Mapped Tries (HAMTs)
Date: Sat, 10 Oct 2020 19:41:51 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; )

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]