include/SDL_endian.h
changeset 1368 533567cbb576
parent 1354 22f39393668a
child 1369 42eeb14770e3
     1.1 --- a/include/SDL_endian.h	Fri Feb 17 08:43:23 2006 +0000
     1.2 +++ b/include/SDL_endian.h	Sat Feb 18 06:51:00 2006 +0000
     1.3 @@ -52,12 +52,13 @@
     1.4  extern "C" {
     1.5  #endif
     1.6  
     1.7 -/* Use inline functions for compilers that support them, and static
     1.8 +/* Use __inline__ functions for compilers that support them, and static
     1.9     functions for those that do not.  Because these functions become
    1.10 -   static for compilers that do not support inline functions, this
    1.11 +   static for compilers that do not support __inline__ functions, this
    1.12     header should only be included in files that actually use them.
    1.13  */
    1.14 -#if defined(__GNUC__) && defined(__i386__)
    1.15 +#if defined(__GNUC__) && defined(__i386__) &&
    1.16 +   !(__GNUC__ == 2 && __GNUC_MINOR__ == 95 /* broken gcc version */)
    1.17  static __inline__ Uint16 SDL_Swap16(Uint16 x)
    1.18  {
    1.19  	__asm__("xchgb %b0,%h0" : "=q" (x) :  "0" (x));