]> granicus.if.org Git - icu/commitdiff
ICU-10051 disable U_HAVE_STD_ATOMICS on Apple LLVM Clang. When there's a version...
authorSteven R. Loomis <srl@icu-project.org>
Fri, 7 Jun 2013 17:10:15 +0000 (17:10 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Fri, 7 Jun 2013 17:10:15 +0000 (17:10 +0000)
X-SVN-Rev: 33809

icu4c/source/common/putilimp.h

index 30a17e704f188c56e3deb90d2442987952d0bb6f..e7fb4cd82e4263f0afa029ea0a38bb1e6fd1b04a 100644 (file)
@@ -207,8 +207,7 @@ typedef size_t uintptr_t;
     /* Use the predefined value. */
 #elif defined(__cplusplus) && __cplusplus>=201103L
     /* C++11, so we should have atomics, except for specific platforms or compilers. */
-
-#if __clang__ && defined(__apple_build_version__) && __clang_major__==4 && __clang_minor__<=1
+#if __clang__ && defined(__apple_build_version__) /* && __clang_major__==4 && __clang_minor__<=2 */
     /* Apple Clang 4.1, based on public llvm 3.1.  Atomics are not fully implemented. */
 #   define U_HAVE_STD_ATOMICS 0
 #elif __clang__ && __clang_major__==3 && __clang_minor__<=1