diff options
author | Brian Paul <brianp@vmware.com> | 2009-12-02 09:23:15 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-12-02 09:23:15 -0700 |
commit | 144afacc6fc67d37780cbb29ccd298de9959b436 (patch) | |
tree | 37bcd58b5620c9bb8dfc3e076098bb4768db28f2 /src | |
parent | f6d5e5842772285f609e2468a06fa30ab8865fd9 (diff) |
gallium/util: __builtin_bswap32() is in only gcc 4.3 or later
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_math.h | 2 |
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) | |