]> granicus.if.org Git - icu/commitdiff
ICU-10050 disable C++11 std atomics on Macintosh
authorAndy Heninger <andy.heninger@gmail.com>
Thu, 4 Jul 2013 22:32:33 +0000 (22:32 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Thu, 4 Jul 2013 22:32:33 +0000 (22:32 +0000)
X-SVN-Rev: 33885

icu4c/source/common/putilimp.h

index e7fb4cd82e4263f0afa029ea0a38bb1e6fd1b04a..fc6788e4877af0f19234b708b8c5f2460ee9f000 100644 (file)
@@ -207,8 +207,8 @@ 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__<=2 */
-    /* Apple Clang 4.1, based on public llvm 3.1.  Atomics are not fully implemented. */
+#if __clang__ && defined(__APPLE__)
+    /* Apple Clang Atomics are not fully implemented yet. */
 #   define U_HAVE_STD_ATOMICS 0
 #elif __clang__ && __clang_major__==3 && __clang_minor__<=1
     /* Clang 3.1. Atomics not fully implemented. */