https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114007
--- Comment #10 from Iain Sandoe <iains at gcc dot gnu.org> --- indeed, it seems clang does not define __has_cpp_attribute for -std=c11 c compilations, whereas GCC does.
iains at gcc dot gnu.org via Gcc-bugs Tue, 20 Feb 2024 02:01:58 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114007
--- Comment #10 from Iain Sandoe <iains at gcc dot gnu.org> --- indeed, it seems clang does not define __has_cpp_attribute for -std=c11 c compilations, whereas GCC does.