libc-config: simplify clang __has_* macros
commita4be4b42044afd81608b74e8e8df9e855f07d4bd
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Jan 2021 18:02:33 +0000 (6 10:02 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Jan 2021 18:07:04 +0000 (6 10:07 -0800)
treef0edef97beee1eaaae5d84646e7c0fed3ef48544
parente478401b85dd843969318afaa4eefad0e1f7a049
libc-config: simplify clang __has_* macros

cdefs.h sometimes used names like __glibc_clang_has_attribute and
sometimes __glibc_has_attribute.  There is no need in glibc or
Gnulib to distinguish clang from other compilers here, so be
consistent and use the simpler names.
* lib/cdefs.h (__glibc_has_builtin, __glibc_has_extension):
Rename from __glibc_clang_has_builtin, __glibc_clang_has_extension.
All uses changed.
(__glibc_clang_has_attribute): Remove. All uses replaced
by __glibc_has_attribute.
* lib/libc-config.h [!__glibc_likely]: Undef them here too.
This fixes a problem where __glibc_has_attribute was not undeffed.
ChangeLog
lib/cdefs.h
lib/libc-config.h