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__ ((nonstring)), I guess we can use that for other attributes too, and delete the configure test that sets HAVE_GCC_ATTRIBUTE?
Documented here: https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005fattribute.html.
Regards, /Niels