Mercurial > sdl-ios-xcode
comparison src/joystick/mint/SDL_sysjoystick.c @ 1336:3692456e7b0f
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 06:59:48 +0000 |
parents | c9b51268668f |
children | 604d73db6802 |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
160 | 160 |
161 int SDL_SYS_JoystickInit(void) | 161 int SDL_SYS_JoystickInit(void) |
162 { | 162 { |
163 int i; | 163 int i; |
164 unsigned long cookie_mch; | 164 unsigned long cookie_mch; |
165 const char *envr=getenv("SDL_JOYSTICK_ATARI"); | 165 const char *envr=SDL_getenv("SDL_JOYSTICK_ATARI"); |
166 | 166 |
167 #define TEST_JOY_ENABLED(env,idstring,num) \ | 167 #define TEST_JOY_ENABLED(env,idstring,num) \ |
168 if (strstr(env,idstring"-off")) { \ | 168 if (SDL_strstr(env,idstring"-off")) { \ |
169 atarijoysticks[num].enabled=SDL_FALSE; \ | 169 atarijoysticks[num].enabled=SDL_FALSE; \ |
170 } \ | 170 } \ |
171 if (strstr(env,idstring"-on")) { \ | 171 if (SDL_strstr(env,idstring"-on")) { \ |
172 atarijoysticks[num].enabled=SDL_TRUE; \ | 172 atarijoysticks[num].enabled=SDL_TRUE; \ |
173 } | 173 } |
174 | 174 |
175 /* Cookie _MCH present ? if not, assume ST machine */ | 175 /* Cookie _MCH present ? if not, assume ST machine */ |
176 if (Getcookie(C__MCH, &cookie_mch) != C_FOUND) { | 176 if (Getcookie(C__MCH, &cookie_mch) != C_FOUND) { |