diff decoders/raw.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/raw.c	Mon Sep 24 23:32:29 2001 +0000
+++ b/decoders/raw.c	Mon Sep 24 23:33:19 2001 +0000
@@ -38,6 +38,8 @@
  *  This file written by Ryan C. Gordon. (icculus@clutteredmind.org)
  */
 
+#ifdef SOUND_SUPPORTS_RAW
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -47,10 +49,6 @@
 #define __SDL_SOUND_INTERNAL__
 #include "SDL_sound_internal.h"
 
-#if (!defined SOUND_SUPPORTS_RAW)
-#error SOUND_SUPPORTS_RAW must be defined.
-#endif
-
 
 static int RAW_init(void);
 static void RAW_quit(void);
@@ -156,6 +154,8 @@
     return(retval);
 } /* RAW_read */
 
+#endif /* SOUND_SUPPORTS_RAW */
+
 
 /* end of raw.c ... */