Commit 1a69af6d38 introduced code for atomic prior to 4.7. Unfortunately clang uses as well those constants which is misleading.
1a69af6d38