glibc/misc/sys
Emilio Cobos Álvarez bfa864e164 Don't use a custom wrapper macro around __has_include (bug 25189).
This causes issues when using clang with -frewrite-includes to e.g.,
submit the translation unit to a distributed compiler.

In my case, I was building Firefox using sccache.

See [1] for a reduced test-case since I initially thought this was a
clang bug, and [2] for more context.

Apparently doing this is invalid C++ per [cpp.cond], which mentions [3]:

> The #ifdef and #ifndef directives, and the defined conditional
> inclusion operator, shall treat __has_include and __has_cpp_attribute
> as if they were the names of defined macros.  The identifiers
> __has_include and __has_cpp_attribute shall not appear in any context
> not mentioned in this subclause.

[1]: https://bugs.llvm.org/show_bug.cgi?id=43982
[2]: https://bugs.llvm.org/show_bug.cgi?id=37990
[3]: http://eel.is/c++draft/cpp.cond#7.sentence-2

Change-Id: Id4b8ee19176a9e4624b533087ba870c418f27e60
2019-11-21 17:54:16 +01:00
..
auxv.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
cdefs.h Don't use a custom wrapper macro around __has_include (bug 25189). 2019-11-21 17:54:16 +01:00
dir.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
file.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ioctl.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mman.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
param.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
queue.h [BZ #5779] 2008-03-05 05:50:39 +00:00
select.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
syslog.h Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
sysmacros.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
uio.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xattr.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00