Skip to content

Instantly share code, notes, and snippets.

@jjgod
Created September 5, 2009 08:51
Show Gist options
  • Save jjgod/181346 to your computer and use it in GitHub Desktop.
Save jjgod/181346 to your computer and use it in GitHub Desktop.
diff --git a/configure.in b/configure.in
index 4441a2e..c1626d0 100644
--- a/configure.in
+++ b/configure.in
@@ -2883,8 +2883,8 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
if test x$enable_audio = xyes; then
AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO)
SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
- AC_DEFINE(SDL_AUDIO_DRIVER_SNDMGR)
- SOURCES="$SOURCES $srcdir/src/audio/macrom/*.c"
+ # AC_DEFINE(SDL_AUDIO_DRIVER_SNDMGR)
+ # SOURCES="$SOURCES $srcdir/src/audio/macrom/*.c"
have_audio=yes
fi
# Set up files for the atomic operations library
diff --git a/src/audio/macosx/SDL_coreaudio.c b/src/audio/macosx/SDL_coreaudio.c
index 3b4a6fc..a6f6f3a 100644
--- a/src/audio/macosx/SDL_coreaudio.c
+++ b/src/audio/macosx/SDL_coreaudio.c
@@ -22,8 +22,9 @@
#include "SDL_config.h"
#include <CoreAudio/CoreAudio.h>
+#include <CoreServices/CoreServices.h>
#include <AudioUnit/AudioUnit.h>
-#ifdef AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
+#if MAC_OS_X_VERSION_MAX_ALLOWED == 1050
#include <AudioUnit/AUNTComponent.h>
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment