From 917d765cfa9c81aa45373469ecff5a2947a5b3a0 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Fri, 7 Jun 2013 17:10:15 +0000 Subject: [PATCH] ICU-10051 disable U_HAVE_STD_ATOMICS on Apple LLVM Clang. When there's a version known which works, this can be changed. X-SVN-Rev: 33809 --- icu4c/source/common/putilimp.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/icu4c/source/common/putilimp.h b/icu4c/source/common/putilimp.h index 30a17e704f1..e7fb4cd82e4 100644 --- a/icu4c/source/common/putilimp.h +++ b/icu4c/source/common/putilimp.h @@ -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 -- 2.40.0