Commit c8cd85eb authored by David Reid's avatar David Reid Committed by GitHub

Merge pull request #4 from gen2brain/master

Add macOS library names
parents c519430b 1f78b797
...@@ -7452,7 +7452,7 @@ mal_result mal_context_init__openal(mal_context* pContext) ...@@ -7452,7 +7452,7 @@ mal_result mal_context_init__openal(mal_context* pContext)
libName = "libopenal.so"; libName = "libopenal.so";
#endif #endif
#ifdef MAL_APPLE #ifdef MAL_APPLE
// I don't own a Mac so a contribution here would be much appreciated! Just don't know what the library is called... libName = "OpenAL.framework/OpenAL";
#endif #endif
if (libName == NULL) { if (libName == NULL) {
return MAL_NO_BACKEND; // Don't know what the library name is called. return MAL_NO_BACKEND; // Don't know what the library name is called.
...@@ -8334,7 +8334,8 @@ mal_result mal_context_init_backend_apis__nix(mal_context* pContext) ...@@ -8334,7 +8334,8 @@ mal_result mal_context_init_backend_apis__nix(mal_context* pContext)
// pthread // pthread
const char* libpthreadFileNames[] = { const char* libpthreadFileNames[] = {
"libpthread.so", "libpthread.so",
"libpthread.so.0" "libpthread.so.0",
"libpthread.dylib"
}; };
for (size_t i = 0; i < sizeof(libpthreadFileNames) / sizeof(libpthreadFileNames[0]); ++i) { for (size_t i = 0; i < sizeof(libpthreadFileNames) / sizeof(libpthreadFileNames[0]); ++i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment