From: Brian Paul Date: Wed, 2 Dec 2009 16:23:15 +0000 (-0700) Subject: gallium/util: __builtin_bswap32() is in only gcc 4.3 or later X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=144afacc6fc67d37780cbb29ccd298de9959b436;p=mesa.git gallium/util: __builtin_bswap32() is in only gcc 4.3 or later --- diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index a5cd6574c0e..b76592d1ec6 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) |