summaryrefslogtreecommitdiff
path: root/src/audio/sun
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio/sun')
-rw-r--r--src/audio/sun/SDL_sunaudio.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/audio/sun/SDL_sunaudio.c b/src/audio/sun/SDL_sunaudio.c
index 1ae9c7c4..2768cf30 100644
--- a/src/audio/sun/SDL_sunaudio.c
+++ b/src/audio/sun/SDL_sunaudio.c
@@ -1,8 +1,3 @@
-/* I'm gambling no one uses this audio backend...we'll see who emails. :) */
-#error this code has not been updated for SDL 1.3.
-#error if no one emails icculus at icculus.org and tells him that this
-#error code is needed, this audio backend will eventually be removed from SDL.
-
/*
Simple DirectMedia Layer
Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
@@ -25,6 +20,13 @@
*/
#include "SDL_config.h"
+#if SDL_AUDIO_DRIVER_SUNAUDIO
+
+/* I'm gambling no one uses this audio backend...we'll see who emails. :) */
+#error this code has not been updated for SDL 1.3.
+#error if no one emails icculus at icculus.org and tells him that this
+#error code is needed, this audio backend will eventually be removed from SDL.
+
/* Allow access to a raw mixing buffer */
#include <fcntl.h>
@@ -450,4 +452,6 @@ snd2au(int sample)
return (mask & sample);
}
+#endif /* SDL_AUDIO_DRIVER_SUNAUDIO */
+
/* vi: set ts=4 sw=4 expandtab: */