From a7d2d12c6435e556e943560db277dfc3ba8af425 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 1 Nov 2017 10:07:04 -0700 Subject: [PATCH] Fixed building on non-Android platforms --- src/joystick/SDL_gamecontroller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index 6f16a26ddd52b..a07d87a93e5fd 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/src/joystick/SDL_gamecontroller.c @@ -926,8 +926,8 @@ static ControllerMapping_t *SDL_PrivateGetControllerMapping(int device_index) SDL_snprintf(mapping_string, sizeof(mapping_string), "none,%s,a:b0,b:b1,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,", name); mapping = SDL_PrivateAddMappingForGUID(guid, mapping_string, &existing, SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT); -#endif /* __ANDROID__ */ } +#endif /* __ANDROID__ */ SDL_UnlockJoysticks(); return mapping; }