summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-04-03 12:14:21 -0700
committerVinson Lee <vlee@vmware.com>2010-04-03 12:14:21 -0700
commit930838efcdac04dd0a0c7ee0375364548a0efe8c (patch)
tree1009af7b9f16a0e5c0d80ae598b4c99ca382ea9d
parent71b2f1d8e64eb77b1c1955c175d07def74855bad (diff)
util: Use GCC atomic bultins on GCC 4.1 and higher only.
-rw-r--r--src/gallium/auxiliary/util/u_atomic.h2
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 3c42477ad4..a156823390 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"