ICU-8730 set U_HAVE_GCC_ATOMICS to 1 for only gcc>=4.1

X-SVN-Rev: 30535
This commit is contained in:
Markus Scherer 2011-08-17 19:55:29 +00:00
parent 6a3384cfa2
commit d5893b6918

View File

@ -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