Don't use __builtin_clz() on gcc2. (thanks, Axel!)

Fixes Bugzilla #1771.
This commit is contained in:
Ryan C. Gordon 2013-03-29 21:16:30 -04:00
parent b7b75855ec
commit 6432ccda7f

View file

@ -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
*/