Mercurial > SDL_sound_CoreAudio
diff decoders/wav.c @ 64:40006625142a
Changes in preparation of autoconf support.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 24 Sep 2001 23:33:19 +0000 |
parents | b13fafb976be |
children | 6d9fdec2f708 |
line wrap: on
line diff
--- a/decoders/wav.c Mon Sep 24 23:32:29 2001 +0000 +++ b/decoders/wav.c Mon Sep 24 23:33:19 2001 +0000 @@ -28,6 +28,8 @@ * This file written by Ryan C. Gordon. (icculus@clutteredmind.org) */ +#ifdef SOUND_SUPPORTS_WAV + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -37,10 +39,6 @@ #define __SDL_SOUND_INTERNAL__ #include "SDL_sound_internal.h" -#if (!defined SOUND_SUPPORTS_WAV) -#error SOUND_SUPPORTS_WAV must be defined. -#endif - static int WAV_init(void); static void WAV_quit(void); static int WAV_open(Sound_Sample *sample, const char *ext); @@ -279,6 +277,7 @@ return(retval); } /* WAV_read */ +#endif /* SOUND_SUPPORTS_WAV */ /* end of wav.c ... */