glibc/misc/sys
Jonathan Wakely 21244c70c2 sys/cdefs.h: Do not require C++ compilers to define __STDC__
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>
2022-05-16 16:48:51 +01:00
..
auxv.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
cdefs.h sys/cdefs.h: Do not require C++ compilers to define __STDC__ 2022-05-16 16:48:51 +01:00
dir.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
file.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ioctl.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
mman.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
param.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
queue.h [BZ #5779] 2008-03-05 05:50:39 +00:00
select.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
single_threaded.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
syslog.h misc: syslog: Move SYSLOG_NAME to USE_MISC (BZ #16355) 2022-04-15 10:41:54 -03:00
sysmacros.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
uio.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
xattr.h Add some missing access function attributes 2022-03-10 05:56:33 +05:30