Implemented SDL_setenv(), moved SDL_putenv() to compat.

Fixes Bugzilla #779.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404330
This commit is contained in:
Ryan C. Gordon 2009-12-16 10:59:51 +00:00
parent 034bfdf70d
commit 791f5dbce4
13 changed files with 90 additions and 53 deletions

View file

@ -321,9 +321,7 @@ ESD_Init(SDL_AudioDriverImpl * impl)
int connection = 0;
/* Don't start ESD if it's not running */
if (SDL_getenv("ESD_NO_SPAWN") == NULL) {
SDL_putenv("ESD_NO_SPAWN=1");
}
SDL_setenv("ESD_NO_SPAWN", "1", 0);
connection = SDL_NAME(esd_open_sound) (NULL);
if (connection < 0) {