summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ac
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-08-31 22:22:14 +0000
committered <ed@FreeBSD.org>2012-08-31 22:22:14 +0000
commit114318f8e86988d471d9b26a8de4f93db13281d8 (patch)
tree996bf12e53bb6917a8e600cb890e4a08ed95c163 /usr.sbin/ac
parentc689c7da4cc2b75006171643abcacf54855c3ae9 (diff)
downloadFreeBSD-src-114318f8e86988d471d9b26a8de4f93db13281d8.zip
FreeBSD-src-114318f8e86988d471d9b26a8de4f93db13281d8.tar.gz
Properly enable Clang-style atomics when available.
In addition to testing against cxx_atomic, we must check c_atomic. The former is only set when building C++ code. Also use __has_extension instead of __has_feature. This allows us to use the atomics outside of C11. Reported by: Ariane van der Steldt <ariane stack nl> PR: threads/170073
Diffstat (limited to 'usr.sbin/ac')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud