diff options
author | Vinson Lee <[email protected]> | 2010-04-03 12:14:21 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-04-03 12:14:21 -0700 |
commit | 930838efcdac04dd0a0c7ee0375364548a0efe8c (patch) | |
tree | 1009af7b9f16a0e5c0d80ae598b4c99ca382ea9d /src/gallium/auxiliary/util | |
parent | 71b2f1d8e64eb77b1c1955c175d07def74855bad (diff) |
util: Use GCC atomic bultins on GCC 4.1 and higher only.
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_atomic.h b/src/gallium/auxiliary/util/u_atomic.h index 3c42477ad4f..a1568233906 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" |