Commit a485ffc3c8d040fc87893b61cd8cddda4248243f

Sam Lantinga 2022-03-19T09:50:22

Fix "SDL_FALSE is not defined" runtime error for emscripten.

diff --git a/src/audio/emscripten/SDL_emscriptenaudio.c b/src/audio/emscripten/SDL_emscriptenaudio.c
index 94d2231..bc2a0e1 100644
--- a/src/audio/emscripten/SDL_emscriptenaudio.c
+++ b/src/audio/emscripten/SDL_emscriptenaudio.c
@@ -365,7 +365,7 @@ EMSCRIPTENAUDIO_Init(SDL_AudioDriverImpl * impl)
         } else if (typeof(webkitAudioContext) !== 'undefined') {
             return true;
         }
-        return SDL_FALSE;
+        return false;
     });
 
     if (!available) {
@@ -378,7 +378,7 @@ EMSCRIPTENAUDIO_Init(SDL_AudioDriverImpl * impl)
         } else if (typeof(navigator.webkitGetUserMedia) !== 'undefined') {
             return true;
         }
-        return SDL_FALSE;
+        return false;
     });
 
     impl->HasCaptureSupport = capture_available ? SDL_TRUE : SDL_FALSE;