# HG changeset patch # User Paul Hunkin # Date 1274584361 -43200 # Node ID 52697090c9678aa54736148285573a57fa34c690 # Parent a5c4ded0c9793d331c47450310c946233766189f Fix a compile error when SDL_JOYSTICK_DISABLED is set diff -r a5c4ded0c979 -r 52697090c967 src/events/SDL_events.c --- a/src/events/SDL_events.c Sun May 23 15:10:18 2010 +1200 +++ b/src/events/SDL_events.c Sun May 23 15:12:41 2010 +1200 @@ -92,11 +92,13 @@ static __inline__ SDL_bool SDL_ShouldPollJoystick() { +#if !SDL_JOYSTICK_DISABLED if (SDL_numjoysticks && (!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] || SDL_JoystickEventState(SDL_QUERY))) { return SDL_TRUE; } +#endif return SDL_FALSE; }