Core Audio: Try to make platform detection more robust.

This commit is contained in:
David Reid
2018-07-02 23:39:56 +10:00
parent f1b38ef0d9
commit 3cc3bb0843
+4 -3
View File
@@ -12560,10 +12560,11 @@ mal_result mal_device__stop_backend__jack(mal_device* pDevice)
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#ifdef MAL_HAS_COREAUDIO #ifdef MAL_HAS_COREAUDIO
#include <TargetConditionals.h> #include <TargetConditionals.h>
#if defined(TARGET_OS_OSX) && TARGET_OS_OSX != 0
#define MAL_APPLE_DESKTOP #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE == 1
#elif defined(TARGET_OS_IPHONE) && TARGET_OS_OSX == 0
#define MAL_APPLE_MOBILE #define MAL_APPLE_MOBILE
#else
#define MAL_APPLE_DESKTOP
#endif #endif
#if defined(MAL_APPLE_DESKTOP) #if defined(MAL_APPLE_DESKTOP)