curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: help making a cmake check for _Atomic?

From: Daniel Stenberg via curl-library <>
Date: Mon, 13 Jun 2022 08:09:19 +0200 (CEST)

On Sun, 12 Jun 2022, Cristian Rodríguez wrote:

> so, if target environment is said to support c11 and not defined
> __STDC_NO_ATOMICS__ then include header, define some internal flag else not
> supported.

That seems more complicated than what we do now.

configure tests need to check for the presence of things, not the absense of
the opposite.

If you build curl with C89 compiler from the early 90s, __STDC_NO_ATOMICS__
will not be defined even if atomic and friends are not supported.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features

Received on 2022-06-13