*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Tue, 21 Feb 2006 09:14:58 +0000
changeset 140639ca9a4b22f3
parent 1405 983df4f9c1c6
child 1407 0c6941483cc6
*** empty log message ***
include/SDL_platform.h
src/audio/SDL_audio.c
     1.1 --- a/include/SDL_platform.h	Tue Feb 21 09:11:53 2006 +0000
     1.2 +++ b/include/SDL_platform.h	Tue Feb 21 09:14:58 2006 +0000
     1.3 @@ -22,6 +22,9 @@
     1.4  
     1.5  /* Try to get a standard set of platform defines */
     1.6  
     1.7 +#ifndef _SDL_platform_h
     1.8 +#define _SDL_platform_h
     1.9 +
    1.10  #if defined(_AIX)
    1.11  #undef __AIX__
    1.12  #define __AIX__		1
    1.13 @@ -102,3 +105,5 @@
    1.14  #undef __WIN32__
    1.15  #define __WIN32__	1
    1.16  #endif
    1.17 +
    1.18 +#endif /* _SDL_platform_h */
     2.1 --- a/src/audio/SDL_audio.c	Tue Feb 21 09:11:53 2006 +0000
     2.2 +++ b/src/audio/SDL_audio.c	Tue Feb 21 09:14:58 2006 +0000
     2.3 @@ -436,7 +436,7 @@
     2.4  	audio->enabled = 1;
     2.5  	audio->paused  = 1;
     2.6  
     2.7 -#if SDL_AUDIO_DRIVER_AHI
     2.8 +#if !SDL_AUDIO_DRIVER_AHI
     2.9  
    2.10  /* AmigaOS opens audio inside the main loop */
    2.11  	audio->opened = audio->OpenAudio(audio, &audio->spec)+1;
    2.12 @@ -511,7 +511,7 @@
    2.13  		}
    2.14  	}
    2.15  
    2.16 -#if SDL_AUDIO_DRIVER_AHI
    2.17 +#if !SDL_AUDIO_DRIVER_AHI
    2.18  	/* Start the audio thread if necessary */
    2.19  	switch (audio->opened) {
    2.20  		case  1:
    2.21 @@ -611,7 +611,7 @@
    2.22  			SDL_FreeAudioMem(audio->convert.buf);
    2.23  
    2.24  		}
    2.25 -#if SDL_AUDIO_DRIVER_AHI
    2.26 +#if !SDL_AUDIO_DRIVER_AHI
    2.27  		if ( audio->opened ) {
    2.28  			audio->CloseAudio(audio);
    2.29  			audio->opened = 0;