Newer versions of gcc has __has_feature(x) macro, too, and returns true on c_atomic, though it does not support Clang-flavored atomic builtins.