Patched to compile on Mac OS X.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 06 Aug 2011 02:15:23 -0400
changeset 5605 9269bf952041
parent 5604 e2ad06c52c65
child 5609 3619f9bc639a
Patched to compile on Mac OS X.
src/audio/coreaudio/SDL_coreaudio.c
src/audio/coreaudio/SDL_coreaudio.h
--- a/src/audio/coreaudio/SDL_coreaudio.c	Sat Aug 06 01:21:24 2011 -0400
+++ b/src/audio/coreaudio/SDL_coreaudio.c	Sat Aug 06 02:15:23 2011 -0400
@@ -19,17 +19,6 @@
   3. This notice may not be removed or altered from any source distribution.
 */
 #include "SDL_config.h"
-
-#if MACOSX_COREAUDIO
-#include <CoreAudio/CoreAudio.h>
-#include <CoreServices/CoreServices.h>
-#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5
-#include <AudioUnit/AUNTComponent.h>
-#endif
-#endif
-
-#include <AudioUnit/AudioUnit.h>
-
 #include "SDL_audio.h"
 #include "../SDL_audio_c.h"
 #include "../SDL_sysaudio.h"
--- a/src/audio/coreaudio/SDL_coreaudio.h	Sat Aug 06 01:21:24 2011 -0400
+++ b/src/audio/coreaudio/SDL_coreaudio.h	Sat Aug 06 02:15:23 2011 -0400
@@ -29,6 +29,16 @@
 #define MACOSX_COREAUDIO 1
 #endif
 
+#if MACOSX_COREAUDIO
+#include <CoreAudio/CoreAudio.h>
+#include <CoreServices/CoreServices.h>
+#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5
+#include <AudioUnit/AUNTComponent.h>
+#endif
+#endif
+
+#include <AudioUnit/AudioUnit.h>
+
 /* Hidden "this" pointer for the audio functions */
 #define _THIS	SDL_AudioDevice *this