[PATCH] cdefs.h: fix "__clang_major" typo
Adhemerval Zanella
adhemerval.zanella@linaro.org
Thu Dec 30 11:20:48 GMT 2021
On 21/12/2021 19:13, Paul Eggert wrote:
> * misc/sys/cdefs.h: Fix misspelling of "__clang_major__".
LGTM, thanks.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
> ---
> misc/sys/cdefs.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
> index a05b538579..f6e1db1954 100644
> --- a/misc/sys/cdefs.h
> +++ b/misc/sys/cdefs.h
> @@ -81,7 +81,7 @@
> # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct
> # define __NTHNL(fct) __attribute__ ((__nothrow__)) fct
> # else
> -# if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major >= 4)
> +# if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4)
> # if __cplusplus >= 201103L
> # define __THROW noexcept (true)
> # else
More information about the Libc-alpha
mailing list