comparison src/joystick/linux/SDL_sysjoystick.c @ 1635:92947e3a18db

Make sure code is only compiled if the appropriate subsystem is enabled
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Apr 2006 04:46:47 +0000
parents 02e19471a694
children 14717b52abc0 97f20f2a1d85
comparison
equal deleted inserted replaced
1634:14f302c5b32c 1635:92947e3a18db
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23
24 #ifdef SDL_JOYSTICK_LINUX
23 25
24 /* This is the system specific header for the SDL joystick API */ 26 /* This is the system specific header for the SDL joystick API */
25 27
26 #include <sys/stat.h> 28 #include <sys/stat.h>
27 #include <unistd.h> 29 #include <unistd.h>
1193 SDL_free(SDL_joylist[i].fname); 1195 SDL_free(SDL_joylist[i].fname);
1194 } 1196 }
1195 SDL_joylist[0].fname = NULL; 1197 SDL_joylist[0].fname = NULL;
1196 } 1198 }
1197 1199
1200 #endif /* SDL_JOYSTICK_LINUX */