diff options
| author | Oliver Collyer <ovcollyer@mac.com> | 2020-11-23 08:03:25 +0000 |
|---|---|---|
| committer | Oliver Collyer <ovcollyer@mac.com> | 2020-11-23 08:03:25 +0000 |
| commit | 5f998b8548e85f90983ba9ad1257eab6eade9bf0 (patch) | |
| tree | 063e2549f5bfcff845adaa8e0882322120eb82ff | |
| parent | d4eeee807085ef766ae48b1731dcdf69f8419473 (diff) | |
Fixed incorrect use of TARGET_OS_IOS definition
| -rw-r--r-- | sokol_audio.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sokol_audio.h b/sokol_audio.h index 7ef4614c..e9038721 100644 --- a/sokol_audio.h +++ b/sokol_audio.h @@ -590,7 +590,7 @@ typedef struct { typedef struct { AudioQueueRef ca_audio_queue; -#if defined(TARGET_OS_IOS) +#if TARGET_OS_IOS void* ca_interruption_handler; #endif } _saudio_backend_t; @@ -1040,7 +1040,7 @@ _SOKOL_PRIVATE void _sapp_ca_callback(void* user_data, AudioQueueRef queue, Audi _SOKOL_PRIVATE bool _saudio_backend_init(void) { SOKOL_ASSERT(0 == _saudio.backend.ca_audio_queue); -#if defined(TARGET_OS_IOS) +#if TARGET_OS_IOS /* activate audio session */ AVAudioSession* session = [AVAudioSession sharedInstance]; SOKOL_ASSERT(session); @@ -1089,7 +1089,7 @@ _SOKOL_PRIVATE void _saudio_backend_shutdown(void) { AudioQueueStop(_saudio.backend.ca_audio_queue, true); AudioQueueDispose(_saudio.backend.ca_audio_queue, false); _saudio.backend.ca_audio_queue = NULL; -#if defined(TARGET_OS_IOS) +#if TARGET_OS_IOS /* remove interruption handler */ if (_saudio.backend.ca_interruption_handler != NULL) { _saudio_interruption_handler* interruption_handler = (__bridge_transfer _saudio_interruption_handler*)_saudio.backend.ca_interruption_handler; |