Commit 3bf83007 authored by David Reid's avatar David Reid

Don't use OSS with Emscripten.

parent 132af6ff
...@@ -195,6 +195,9 @@ extern "C" { ...@@ -195,6 +195,9 @@ extern "C" {
#ifdef __ANDROID__ #ifdef __ANDROID__
#define MAL_ANDROID #define MAL_ANDROID
#endif #endif
#ifdef __EMSCRIPTEN__
#define MAL_EMSCRIPTEN
#endif
#endif #endif
// Some backends are only supported on certain platforms. // Some backends are only supported on certain platforms.
...@@ -226,7 +229,7 @@ extern "C" { ...@@ -226,7 +229,7 @@ extern "C" {
#if defined(MAL_ANDROID) #if defined(MAL_ANDROID)
#define MAL_SUPPORT_OPENSL #define MAL_SUPPORT_OPENSL
#endif #endif
#if !defined(MAL_LINUX) && !defined(MAL_APPLE) && !defined(MAL_ANDROID) #if !defined(MAL_LINUX) && !defined(MAL_APPLE) && !defined(MAL_ANDROID) && !defined(MAL_EMSCRIPTEN)
#define MAL_SUPPORT_OSS #define MAL_SUPPORT_OSS
#endif #endif
#endif #endif
......
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