NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/57288
The following reply was made to PR lib/57288; it has been noted by GNATS.
From: Mingye Wang <arthur200126%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: lib/57288
Date: Sat, 25 Mar 2023 14:10:37 +0800
Huh, __has_builtin may be too recent (GCC 10) to stuff into these
headers. I am afraid that some hard version check is in order. Or you
could just...
#if defined(__clang__) || __GNUC__ >= 10
#define __has_fancy_builtin(x) __has_builtin(x)
#else
#define __has_fancy_builtin(x) 0
#endif
Well, it's "fancy" because it would be very wrong if applied to the
usual things from before GCC 10. Nah it's a terrible idea.
Home |
Main Index |
Thread Index |
Old Index