Hello,
On Fri, May 08, 2026 at 04:02:59PM +0200, Niels Möller wrote:
Georg Sauthoff nettle@gms.tf writes:
My order of preference is:
a) annotation b) array syntax (cf. Simon's reply)
I'm looking at this again. array syntax is reasonable for the hex_digits case, but is a bit unwieldy for the other cases.
When was __has_attribute introduced? If we use that for __attribute__
it was introduced with GCC 5.1 (released 2015) and Clang supports it since at least version 3.1 (released 2012).
Demo: https://godbolt.org/z/WWh34Mer7 Mention in the gcc release notes: https://gcc.gnu.org/gcc-5/changes.html
((nonstring)), I guess we can use that for other attributes too, and delete the configure test that sets HAVE_GCC_ATTRIBUTE?
Yes, definitely.
Best regards, Georg