From d5893b691819cc46443900d2991b093208e5193c Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Wed, 17 Aug 2011 19:55:29 +0000 Subject: [PATCH] ICU-8730 set U_HAVE_GCC_ATOMICS to 1 for only gcc>=4.1 X-SVN-Rev: 30535 --- icu4c/source/common/putilimp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/common/putilimp.h b/icu4c/source/common/putilimp.h index 40cb6cf3e5b..d952b020f94 100644 --- a/icu4c/source/common/putilimp.h +++ b/icu4c/source/common/putilimp.h @@ -134,7 +134,7 @@ typedef size_t uintptr_t; */ #ifdef U_HAVE_GCC_ATOMICS /* Use the predefined value. */ -#elif defined(__GNUC__) +#elif defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 401) # define U_HAVE_GCC_ATOMICS 1 #else # define U_HAVE_GCC_ATOMICS 0 -- 2.50.1