From: Vinson Lee Date: Sat, 3 Apr 2010 19:14:21 +0000 (-0700) Subject: util: Use GCC atomic bultins on GCC 4.1 and higher only. X-Git-Tag: mesa-7.8.1~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=930838efcdac04dd0a0c7ee0375364548a0efe8c;p=platform%2Fupstream%2Fmesa.git util: Use GCC atomic bultins on GCC 4.1 and higher only. --- diff --git a/src/gallium/auxiliary/util/u_atomic.h b/src/gallium/auxiliary/util/u_atomic.h index 3c42477..a156823 100644 --- a/src/gallium/auxiliary/util/u_atomic.h +++ b/src/gallium/auxiliary/util/u_atomic.h @@ -29,7 +29,7 @@ #define PIPE_ATOMIC_ASM_MSVC_X86 #elif (defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86)) #define PIPE_ATOMIC_ASM_GCC_X86 -#elif defined(PIPE_CC_GCC) +#elif defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 401) #define PIPE_ATOMIC_GCC_INTRINSIC #else #error "Unsupported platform"