diff options
author | Vinson Lee <vlee@vmware.com> | 2010-04-03 12:14:21 -0700 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-04-03 12:14:21 -0700 |
commit | 930838efcdac04dd0a0c7ee0375364548a0efe8c (patch) | |
tree | 1009af7b9f16a0e5c0d80ae598b4c99ca382ea9d | |
parent | 71b2f1d8e64eb77b1c1955c175d07def74855bad (diff) | |
download | external_mesa3d-930838efcdac04dd0a0c7ee0375364548a0efe8c.zip external_mesa3d-930838efcdac04dd0a0c7ee0375364548a0efe8c.tar.gz external_mesa3d-930838efcdac04dd0a0c7ee0375364548a0efe8c.tar.bz2 |
util: Use GCC atomic bultins on GCC 4.1 and higher only.
-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 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" |