From 87b6d55ebda8a11186f7b09b5866b05a4584d13d Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 5 Jan 2009 15:58:32 -0500 Subject: [PATCH] Disable __builtin_clz() intrinsic on gcc versions prior to 3.4. The function did not exist before that version. --- common/osdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/osdep.h b/common/osdep.h index 94d5c1ad..c9dd3c45 100644 --- a/common/osdep.h +++ b/common/osdep.h @@ -170,7 +170,7 @@ static ALWAYS_INLINE intptr_t endian_fix( intptr_t x ) } #endif -#ifdef __GNUC__ +#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 3) #define x264_clz(x) __builtin_clz(x) #else static int ALWAYS_INLINE x264_clz( uint32_t x ) -- 2.47.3