Don't use __builtin_clz() on gcc2. (thanks, Axel!)
authorRyan C. Gordon <icculus@icculus.org>
Fri, 29 Mar 2013 21:16:30 -0400
changeset 70333b12bae22f9e
parent 7032 305feca4f152
child 7034 3a5a53435ebd
Don't use __builtin_clz() on gcc2. (thanks, Axel!)

Fixes Bugzilla #1771.
include/SDL_bits.h
     1.1 --- a/include/SDL_bits.h	Fri Mar 29 21:13:16 2013 -0400
     1.2 +++ b/include/SDL_bits.h	Fri Mar 29 21:16:30 2013 -0400
     1.3 @@ -52,7 +52,7 @@
     1.4  SDL_FORCE_INLINE Sint8
     1.5  SDL_MostSignificantBitIndex32(Uint32 x)
     1.6  {
     1.7 -#if defined(__GNUC__)
     1.8 +#if defined(__GNUC__) && __GNUC__ >= 4
     1.9      /* Count Leading Zeroes builtin in GCC.
    1.10       * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html
    1.11       */