gallium/util: __builtin_bswap32() is in only gcc 4.3 or later

This commit is contained in:
Brian Paul 2009-12-02 09:23:15 -07:00
parent f6d5e58427
commit 144afacc6f

View file

@ -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) |