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 <curl-library_at_lists.haxx.se>
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.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html


-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2022-06-13