Mercurial > sdl-ios-xcode
diff src/audio/SDL_audio.c @ 1341:d02b552e5304
Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 12:11:33 +0000 |
parents | 3692456e7b0f |
children | c71e05b4dc2e |
line wrap: on
line diff
--- a/src/audio/SDL_audio.c Tue Feb 07 11:18:21 2006 +0000 +++ b/src/audio/SDL_audio.c Tue Feb 07 12:11:33 2006 +0000 @@ -306,18 +306,20 @@ */ for ( i=0; bootstrap[i]; ++i ) { if ( SDL_strcmp(bootstrap[i]->name, "esd") == 0 ) { +#ifdef HAVE_PUTENV const char *esd_no_spawn; /* Don't start ESD if it's not running */ - esd_no_spawn = SDL_getenv("ESD_NO_SPAWN"); + esd_no_spawn = getenv("ESD_NO_SPAWN"); if ( esd_no_spawn == NULL ) { putenv("ESD_NO_SPAWN=1"); } +#endif if ( bootstrap[i]->available() ) { audio = bootstrap[i]->create(0); break; } -#ifdef linux /* No unsetenv() on most platforms */ +#ifdef HAVE_UNSETENV if ( esd_no_spawn == NULL ) { unsetenv("ESD_NO_SPAWN"); }