Index: code/sound/ds.h
===================================================================
RCS file: /home/fs2source/cvsroot/fs2_open/code/sound/ds.h,v
retrieving revision 2.18.2.2
diff -u -r2.18.2.2 ds.h
--- code/sound/ds.h	6 Jul 2006 21:56:18 -0000	2.18.2.2
+++ code/sound/ds.h	26 Nov 2006 03:19:26 -0000
@@ -254,6 +254,7 @@
 extern const char* openal_error_string(int get_alc = 0);
 
 // if an error occurs after executing 'x' then do 'y'
+#ifndef __APPLE__
 #define OpenAL_ErrorCheck( x, y )	do {	\
 	x;	\
 	const char *error_text = openal_error_string(0);	\
@@ -262,6 +263,17 @@
 		y;	\
 	}	\
 } while (0);
+#else
+// fscking Apple bastards...
+#define OpenAL_ErrorCheck( x, y )	do {	\
+	x;	\
+	const char *error_text = openal_error_string(0);	\
+	if ( error_text != NULL ) {	\
+		nprintf(("Warning", "SOUND: %s:%d - OpenAL error = '%s'\n", __FILE__, __LINE__, error_text));	\
+		/*y;*/	\
+	}	\
+} while (0);
+#endif
 
 // like OpenAL_ErrorCheck() except that it gives the error message from x but does nothing about it
 #define OpenAL_ErrorPrint( x )	do {	\
@@ -273,6 +285,7 @@
 } while (0);
 
 // same as the above two, but looks for ALC errors instead of standard AL errors
+#ifndef __APPLE__
 #define OpenAL_C_ErrorCheck( x, y )	do {	\
 	x;	\
 	const char *error_text = openal_error_string(1);	\
@@ -281,6 +294,17 @@
 		y;	\
 	}	\
 } while (0);
+#else
+// fscking Apple bastards...
+#define OpenAL_C_ErrorCheck( x, y )	do {	\
+	x;	\
+	const char *error_text = openal_error_string(1);	\
+	if ( error_text != NULL ) {	\
+		nprintf(("Warning", "SOUND: %s:%d - OpenAL error = '%s'\n", __FILE__, __LINE__, error_text));	\
+		/*y;*/	\
+	}	\
+} while (0);
+#endif
 
 // like OpenAL_ErrorCheck() except that it gives the error message from x but does nothing about it
 #define OpenAL_C_ErrorPrint( x )	do {	\
