[PATCH] Check Clang 12 for __builtin_complex

H.J. Lu hjl.tools@gmail.com
Wed Dec 18 18:48:04 GMT 2024


On Thu, Dec 19, 2024 at 1:40 AM Joseph Myers <josmyers@redhat.com> wrote:
>
> 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.
>

Fixed in v2.

Thanks.

-- 
H.J.


More information about the Libc-alpha mailing list