Skip to content

Commit

Permalink
Don't build coreaudio support if not on an Apple platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 14, 2018
1 parent f2867f6 commit 7d049ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SDL_sound_internal.h
Expand Up @@ -89,6 +89,12 @@
#define SOUND_SUPPORTS_COREAUDIO 1
#endif

/* only build CoreAudio support if on an Apple platform. */
#if SOUND_SUPPORTS_COREAUDIO && !defined(__APPLE__)
#undef SOUND_SUPPORTS_COREAUDIO
#define SOUND_SUPPORTS_COREAUDIO 0
#endif


/*
* SDL itself only supports mono and stereo output, but hopefully we can
Expand Down

0 comments on commit 7d049ca

Please sign in to comment.