From 3acf1764c3136fcdf51d3f36ab8dc096639a3f88 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 29 Mar 2013 21:16:30 -0400 Subject: [PATCH] Don't use __builtin_clz() on gcc2. (thanks, Axel!) Fixes Bugzilla #1771. --- include/SDL_bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_bits.h b/include/SDL_bits.h index 4b35a77cf..d678b7822 100644 --- a/include/SDL_bits.h +++ b/include/SDL_bits.h @@ -52,7 +52,7 @@ extern "C" { SDL_FORCE_INLINE Sint8 SDL_MostSignificantBitIndex32(Uint32 x) { -#if defined(__GNUC__) +#if defined(__GNUC__) && __GNUC__ >= 4 /* Count Leading Zeroes builtin in GCC. * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html */