glibc/misc
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
..
bits Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sys Don't use a custom wrapper macro around __has_include (bug 25189). 2019-11-21 17:54:16 +01:00
acct.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
allocate_once.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ar.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
brk.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bug18240.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bug-hsearch1.c
chflags.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
chroot.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
daemon.c Consolidate non cancellable close call 2017-08-18 18:38:55 -03:00
dirname.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
efgcvt_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
efgcvt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
err.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
err.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
error.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
error.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fchflags.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fdatasync.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fgetxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
flistxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fremovexattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fsetxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fstab.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fstab.h
fsync.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ftruncate64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ftruncate.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
futimes.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
futimesat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getauxval.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getclktck.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getdomain.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getdtsz.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
gethostid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
gethostname.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getloadavg.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getpagesize.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getpass.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getsysstats.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getttyent.c Fix -Os getc_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-21 18:01:11 +00:00
getusershell.c
getxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
gtty.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
hsearch_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
hsearch.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ifunc-impl-list.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
init-misc.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
insremque.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ioctl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lgetxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
libgen.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
listxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
llistxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lremovexattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lsearch.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lsetxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lutimes.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
madvise.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
makedev.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
Makefile Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mincore.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkdtemp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkostemp64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkostemp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkostemps64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkostemps.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkstemp64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkstemp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkstemps64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkstemps.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mktemp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mlock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mlockall.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mmap64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mmap.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mntent_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mntent.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mntent.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mprotect.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
msync.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
munlock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
munlockall.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
munmap.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
preadv2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
preadv64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
preadv64v2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
preadv.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
pselect.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ptrace.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
pwritev2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
pwritev64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
pwritev64v2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
pwritev.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
qefgcvt_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
qefgcvt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
readv.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
reboot.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
regexp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
regexp.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
remap_file_pages.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
removexattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
revoke.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sbrk.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
search.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
select.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setdomain.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setegid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
seteuid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sethostid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sethostname.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setregid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setreuid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sgtty.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sstk.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stab.h
stty.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
swapoff.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
swapon.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sync.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
syncfs.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
syscall.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
syscall.h
sysexits.h
syslog.c Change most internal uses of time to __clock_gettime. 2019-10-30 17:11:10 -03:00
syslog.h
truncate64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
truncate.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tsearch.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-allocate_once.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-atomic-long.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-atomic.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-dbl-efgcvt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-dirname.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-efgcvt-template.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-empty.c Move all tests out of the csu subdirectory 2016-12-21 11:52:19 +01:00
tst-error1.c Split DIAG_* macros to new header libc-diag.h. 2017-02-25 09:59:46 -05:00
tst-fdset.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-gethostid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-hsearch.c
tst-insremque.c
tst-ldbl-efgcvt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-ldbl-error.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-ldbl-warn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-makedev.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-mntent2.c
tst-mntent-autofs.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-mntent-blank-corrupt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-mntent-blank-passno.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-mntent.c getmntent: fix memory corruption w/blank lines [BZ #18887] 2015-08-29 18:07:00 -04:00
tst-preadvwritev2-common.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-preadvwritev2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-preadvwritev64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-preadvwritev64v2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-preadvwritev-common.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-preadvwritev.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-pselect.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-tsearch.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-warn-wide.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ttyent.h
ttyslot.c As a minor cleanup remove the (r)index defines from include/string.h as 2017-02-06 18:15:18 +00:00
ualarm.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
usleep.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ustat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
utimes.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
Versions misc: Add twalk_r function 2019-05-02 11:42:51 +02:00
vhangup.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
writev.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00