]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clean up <sys/cdefs.h> slightly.
authored <ed@FreeBSD.org>
Tue, 2 Sep 2014 11:16:44 +0000 (11:16 +0000)
committered <ed@FreeBSD.org>
Tue, 2 Sep 2014 11:16:44 +0000 (11:16 +0000)
commit2a766477ec816475821f4c92c496f21c4fcc93d6
tree8a0ae948f1112443ec96357e097bec4a277ede44
parent8b014a347bf609febfd59128c02baa9e1b0a128e
Clean up <sys/cdefs.h> slightly.

- Remove c++0x hack from <sys/cdefs.h> that was needed when Clang did
  not fully implement C++11. We can now safely test against C++11 to
  check whether thread_local is available, like we do for all other
  C++11 keywords.

- Don't use __clang__ to test for thread safety annotation presence. It
  turns out we have a proper attribute for this.
sys/sys/cdefs.h