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

Reply via email to