include/SDL_endian.h
branchSDL-1.2
changeset 3909 6832b00d3594
parent 1475 d45aefcac017
child 4159 a1b03ba2fcd0
     1.1 --- a/include/SDL_endian.h	Sat Feb 03 08:17:12 2007 +0000
     1.2 +++ b/include/SDL_endian.h	Mon Feb 05 06:44:51 2007 +0000
     1.3 @@ -56,7 +56,7 @@
     1.4     header should only be included in files that actually use them.
     1.5  */
     1.6  #if defined(__GNUC__) && defined(__i386__) && \
     1.7 -   !(__GNUC__ == 2 && __GNUC_MINOR__ == 95 /* broken gcc version */)
     1.8 +   !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */)
     1.9  static __inline__ Uint16 SDL_Swap16(Uint16 x)
    1.10  {
    1.11  	__asm__("xchgb %b0,%h0" : "=q" (x) :  "0" (x));
    1.12 @@ -88,7 +88,8 @@
    1.13  }
    1.14  #endif
    1.15  
    1.16 -#if defined(__GNUC__) && defined(__i386__)
    1.17 +#if defined(__GNUC__) && defined(__i386__) && \
    1.18 +   !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */)
    1.19  static __inline__ Uint32 SDL_Swap32(Uint32 x)
    1.20  {
    1.21  	__asm__("bswap %0" : "=r" (x) : "0" (x));
    1.22 @@ -123,7 +124,8 @@
    1.23  #endif
    1.24  
    1.25  #ifdef SDL_HAS_64BIT_TYPE
    1.26 -#if defined(__GNUC__) && defined(__i386__)
    1.27 +#if defined(__GNUC__) && defined(__i386__) && \
    1.28 +   !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */)
    1.29  static __inline__ Uint64 SDL_Swap64(Uint64 x)
    1.30  {
    1.31  	union {