Web lists-archives.com

Weird mismatch between cdefs and stdatomic

This[0] and this[1]. One header checks for atomic C/CXX extensions *and* for
the presence of a C++ compiler, while the other only checks for extensions.

The result is that the _Atomic() macro is *not* defined in cdefs.h when
compiled with C++, but the stdatomic.h atomic macros assume that it is, and try
to access the "__val" struct member, with predictable and sad results.

I just stumbled upon this while compiling OpenSSL, and wanted to see if anyone
else encountered this problem.


Attachment: signature.asc
Description: OpenPGP digital signature