src/joystick/linux/SDL_sysjoystick.c
changeset 7860 2b0bcdea3a79
parent 7802 d239ba573818
child 7909 4434ab25abf3
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Sun Oct 20 21:34:38 2013 -0700
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Sun Oct 20 21:56:15 2013 -0700
     1.3 @@ -617,7 +617,7 @@
     1.4      return !joystick->closed && (joystick->hwdata->item != NULL);
     1.5  }
     1.6  
     1.7 -static __inline__ void
     1.8 +static SDL_INLINE void
     1.9  HandleHat(SDL_Joystick * stick, Uint8 hat, int axis, int value)
    1.10  {
    1.11      struct hwdata_hat *the_hat;
    1.12 @@ -643,14 +643,14 @@
    1.13      }
    1.14  }
    1.15  
    1.16 -static __inline__ void
    1.17 +static SDL_INLINE void
    1.18  HandleBall(SDL_Joystick * stick, Uint8 ball, int axis, int value)
    1.19  {
    1.20      stick->hwdata->balls[ball].axis[axis] += value;
    1.21  }
    1.22  
    1.23  
    1.24 -static __inline__ int
    1.25 +static SDL_INLINE int
    1.26  AxisCorrect(SDL_Joystick * joystick, int which, int value)
    1.27  {
    1.28      struct axis_correct *correct;
    1.29 @@ -679,7 +679,7 @@
    1.30      return value;
    1.31  }
    1.32  
    1.33 -static __inline__ void
    1.34 +static SDL_INLINE void
    1.35  PollAllValues(SDL_Joystick * joystick)
    1.36  {
    1.37      struct input_absinfo absinfo;
    1.38 @@ -717,7 +717,7 @@
    1.39      }
    1.40  }
    1.41  
    1.42 -static __inline__ void
    1.43 +static SDL_INLINE void
    1.44  HandleInputEvents(SDL_Joystick * joystick)
    1.45  {
    1.46      struct input_event events[32];