Mercurial > sdl-ios-xcode
comparison src/SDL.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 | 450721ad5436 |
children | 604d73db6802 |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
64 int SDL_InitSubSystem(Uint32 flags) | 64 int SDL_InitSubSystem(Uint32 flags) |
65 { | 65 { |
66 #ifndef DISABLE_VIDEO | 66 #ifndef DISABLE_VIDEO |
67 /* Initialize the video/event subsystem */ | 67 /* Initialize the video/event subsystem */ |
68 if ( (flags & SDL_INIT_VIDEO) && !(SDL_initialized & SDL_INIT_VIDEO) ) { | 68 if ( (flags & SDL_INIT_VIDEO) && !(SDL_initialized & SDL_INIT_VIDEO) ) { |
69 if ( SDL_VideoInit(getenv("SDL_VIDEODRIVER"), | 69 if ( SDL_VideoInit(SDL_getenv("SDL_VIDEODRIVER"), |
70 (flags&SDL_INIT_EVENTTHREAD)) < 0 ) { | 70 (flags&SDL_INIT_EVENTTHREAD)) < 0 ) { |
71 return(-1); | 71 return(-1); |
72 } | 72 } |
73 SDL_initialized |= SDL_INIT_VIDEO; | 73 SDL_initialized |= SDL_INIT_VIDEO; |
74 } | 74 } |
80 #endif | 80 #endif |
81 | 81 |
82 #ifndef DISABLE_AUDIO | 82 #ifndef DISABLE_AUDIO |
83 /* Initialize the audio subsystem */ | 83 /* Initialize the audio subsystem */ |
84 if ( (flags & SDL_INIT_AUDIO) && !(SDL_initialized & SDL_INIT_AUDIO) ) { | 84 if ( (flags & SDL_INIT_AUDIO) && !(SDL_initialized & SDL_INIT_AUDIO) ) { |
85 if ( SDL_AudioInit(getenv("SDL_AUDIODRIVER")) < 0 ) { | 85 if ( SDL_AudioInit(SDL_getenv("SDL_AUDIODRIVER")) < 0 ) { |
86 return(-1); | 86 return(-1); |
87 } | 87 } |
88 SDL_initialized |= SDL_INIT_AUDIO; | 88 SDL_initialized |= SDL_INIT_AUDIO; |
89 } | 89 } |
90 #else | 90 #else |