Mercurial > sdl-ios-xcode
diff src/audio/macrom/SDL_romaudio.c @ 1402:d910939febfa
Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 21 Feb 2006 08:46:50 +0000 |
parents | 19418e4422cb |
children | f12379c41042 |
line wrap: on
line diff
--- a/src/audio/macrom/SDL_romaudio.c Tue Feb 21 08:34:45 2006 +0000 +++ b/src/audio/macrom/SDL_romaudio.c Tue Feb 21 08:46:50 2006 +0000 @@ -19,6 +19,7 @@ Sam Lantinga slouken@libsdl.org */ +#include "SDL_config.h" #if defined(__APPLE__) && defined(__MACH__) # include <Carbon/Carbon.h> @@ -92,7 +93,7 @@ this->UnlockAudio = Mac_UnlockAudio; this->free = Audio_DeleteDevice; -#ifdef MACOSX /* MacOS X uses threaded audio, so normal thread code is okay */ +#ifdef __MACOSX__ /* MacOS X uses threaded audio, so normal thread code is okay */ this->LockAudio = NULL; this->UnlockAudio = NULL; #endif @@ -120,7 +121,7 @@ static void mix_buffer(SDL_AudioDevice *audio, UInt8 *buffer) { if ( ! audio->paused ) { -#ifdef MACOSX +#ifdef __MACOSX__ SDL_mutexP(audio->mixer_lock); #endif if ( audio->convert.needed ) { @@ -134,7 +135,7 @@ } else { audio->spec.callback(audio->spec.userdata, buffer, audio->spec.size); } -#ifdef MACOSX +#ifdef __MACOSX__ SDL_mutexV(audio->mixer_lock); #endif }