[PATCH] Check Clang 12 for __builtin_complex

Joseph Myers josmyers@redhat.com
Wed Dec 18 17:40:01 GMT 2024


On Wed, 18 Dec 2024, H.J. Lu wrote:

> -#if defined __USE_ISOC11 && __GNUC_PREREQ (4, 7)
> +#if defined __USE_ISOC11 \
> +    && (__GNUC_PREREQ (4, 7) \
> +	|| (defined __clang__ && __clang_major__ >= 12))

We have a __glibc_clang_prereq macro that can be used in cases like this.

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list