From bd744e7ed733febe63842de1dbf2d670c0ec1d9b Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 14 Dec 2017 19:32:12 +1000 Subject: [PATCH] Improvements to the build system for the OpenAL backend. --- mini_al.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index 894861da..906e3c59 100644 --- a/mini_al.h +++ b/mini_al.h @@ -1638,7 +1638,14 @@ void mal_pcm_convert(void* pOut, mal_format formatOut, const void* pIn, mal_form #define MAL_HAS_OPENSL // Like OSS, OpenSL is the only supported backend for Android. It must be present. #endif #ifdef MAL_ENABLE_OPENAL - #define MAL_HAS_OPENAL // mini_al inlines the necessary OpenAL stuff. + #define MAL_HAS_OPENAL + #ifdef MAL_NO_RUNTIME_LINKING + #ifdef __has_include + #if !__has_include() + #undef MAL_HAS_OPENAL + #endif + #endif + #endif #endif #ifdef MAL_ENABLE_SDL #define MAL_HAS_SDL @@ -11488,6 +11495,7 @@ void mal_pcm_f32_to_s32(int* pOut, const float* pIn, unsigned int count) // ================ // // v0.x - xxxx-xx-xx +// - Improvements to the build system for the OpenAL backend. // - Documentation fixes. // // v0.6 - 2017-12-08