Commit febc47976b516fb9984b7e89d5bb0c5d194dc82a

Sam Lantinga 2014-07-07T11:44:14

SDL_SYS_IsXInputGamepad_DeviceIndex() is only available if SDL_JOYSTICK_XINPUT is true.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/joystick/SDL_sysjoystick.h b/src/joystick/SDL_sysjoystick.h
index 84efe69..a398695 100644
--- a/src/joystick/SDL_sysjoystick.h
+++ b/src/joystick/SDL_sysjoystick.h
@@ -108,8 +108,10 @@ extern SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID(int device_index);
 /* Function to return the stable GUID for a opened joystick */
 extern SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick);
 
+#if SDL_JOYSTICK_XINPUT
 /* Function returns SDL_TRUE if this device is an XInput gamepad */
 extern SDL_bool SDL_SYS_IsXInputGamepad_DeviceIndex(int device_index);
+#endif
 
 #endif /* _SDL_sysjoystick_h */