summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-12-02 09:23:15 -0700
committerBrian Paul <brianp@vmware.com>2009-12-02 09:23:15 -0700
commit144afacc6fc67d37780cbb29ccd298de9959b436 (patch)
tree37bcd58b5620c9bb8dfc3e076098bb4768db28f2 /src/gallium/auxiliary/util
parentf6d5e5842772285f609e2468a06fa30ab8865fd9 (diff)
gallium/util: __builtin_bswap32() is in only gcc 4.3 or later
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index a5cd6574c0..b76592d1ec 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -520,7 +520,7 @@ util_bitcount(unsigned n)
static INLINE uint32_t
util_bswap32(uint32_t n)
{
-#if defined(PIPE_CC_GCC)
+#if defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 403)
return __builtin_bswap32(n);
#else
return (n >> 24) |