Fixed building with joysticks disabled

This commit is contained in:
Sam Lantinga 2012-11-26 23:58:23 -08:00
parent 532e63b3f3
commit 50a56c026a

View file

@ -29,14 +29,11 @@
#include "../SDL_joystick_c.h"
/* Function to scan the system for joysticks.
* This function should set SDL_numjoysticks to the number of available
* joysticks. Joystick 0 should be the system default joystick.
* It should return 0, or -1 on an unrecoverable fatal error.
*/
int
SDL_SYS_JoystickInit(void)
{
SDL_numjoysticks = 0;
return (0);
}