mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
21244c70c2
The check for an ISO C compiler assumes that anything GCC-like will define __STDC__, even if it's actually a C++ compiler. That's currently true for G++ and compilers like clang++ that also define __GNUC__, but it might not always be true. The C++ standard leaves it implementation-defined whether or not __STDC__ is defined by C++ compilers. And really the check should be "ISO C or ISO C++ conforming compiler" anyway. So only give an error if __GNUC__ is defined and neither __STDC__ nor __cplusplus is defined. Reviewed-by: Fangrui Song <maskray@google.com> |
||
---|---|---|
.. | ||
auxv.h | ||
cdefs.h | ||
dir.h | ||
file.h | ||
ioctl.h | ||
mman.h | ||
param.h | ||
queue.h | ||
select.h | ||
single_threaded.h | ||
syslog.h | ||
sysmacros.h | ||
uio.h | ||
xattr.h |