Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Patched to compile on Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 6, 2011
1 parent f2f9ad4 commit 3f157d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/audio/coreaudio/SDL_coreaudio.c
Expand Up @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions src/audio/coreaudio/SDL_coreaudio.h
Expand Up @@ -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

Expand Down

0 comments on commit 3f157d6

Please sign in to comment.