# HG changeset patch # User Sam Lantinga # Date 1140513298 0 # Node ID 39ca9a4b22f3ea68f0329144d2246ecc5905eca1 # Parent 983df4f9c1c6d917698189c8e5ac8a4aba08d5de *** empty log message *** diff -r 983df4f9c1c6 -r 39ca9a4b22f3 include/SDL_platform.h --- a/include/SDL_platform.h Tue Feb 21 09:11:53 2006 +0000 +++ b/include/SDL_platform.h Tue Feb 21 09:14:58 2006 +0000 @@ -22,6 +22,9 @@ /* Try to get a standard set of platform defines */ +#ifndef _SDL_platform_h +#define _SDL_platform_h + #if defined(_AIX) #undef __AIX__ #define __AIX__ 1 @@ -102,3 +105,5 @@ #undef __WIN32__ #define __WIN32__ 1 #endif + +#endif /* _SDL_platform_h */ diff -r 983df4f9c1c6 -r 39ca9a4b22f3 src/audio/SDL_audio.c --- a/src/audio/SDL_audio.c Tue Feb 21 09:11:53 2006 +0000 +++ b/src/audio/SDL_audio.c Tue Feb 21 09:14:58 2006 +0000 @@ -436,7 +436,7 @@ audio->enabled = 1; audio->paused = 1; -#if SDL_AUDIO_DRIVER_AHI +#if !SDL_AUDIO_DRIVER_AHI /* AmigaOS opens audio inside the main loop */ audio->opened = audio->OpenAudio(audio, &audio->spec)+1; @@ -511,7 +511,7 @@ } } -#if SDL_AUDIO_DRIVER_AHI +#if !SDL_AUDIO_DRIVER_AHI /* Start the audio thread if necessary */ switch (audio->opened) { case 1: @@ -611,7 +611,7 @@ SDL_FreeAudioMem(audio->convert.buf); } -#if SDL_AUDIO_DRIVER_AHI +#if !SDL_AUDIO_DRIVER_AHI if ( audio->opened ) { audio->CloseAudio(audio); audio->opened = 0;