Make sure code is only compiled if the appropriate subsystem is enabled

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401642
This commit is contained in:
Sam Lantinga 2006-04-14 04:46:47 +00:00
parent a5e03023d5
commit 2072cdd857
54 changed files with 173 additions and 6 deletions

View file

@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#ifdef SDL_JOYSTICK_IOKIT
/* SDL joystick driver for Darwin / Mac OS X, based on the IOKit HID API */
/* Written 2001 by Max Horn */
@ -836,3 +838,5 @@ void SDL_SYS_JoystickQuit(void)
while (NULL != gpDeviceList)
gpDeviceList = HIDDisposeDevice (&gpDeviceList);
}
#endif /* SDL_JOYSTICK_IOKIT */