Explorar o código

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

Sam Lantinga %!s(int64=4) %!d(string=hai) anos
pai
achega
a485ffc3c8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/audio/emscripten/SDL_emscriptenaudio.c

+ 2 - 2
src/audio/emscripten/SDL_emscriptenaudio.c

@@ -365,7 +365,7 @@ EMSCRIPTENAUDIO_Init(SDL_AudioDriverImpl * impl)
         } else if (typeof(webkitAudioContext) !== 'undefined') {
         } else if (typeof(webkitAudioContext) !== 'undefined') {
             return true;
             return true;
         }
         }
-        return SDL_FALSE;
+        return false;
     });
     });
 
 
     if (!available) {
     if (!available) {
@@ -378,7 +378,7 @@ EMSCRIPTENAUDIO_Init(SDL_AudioDriverImpl * impl)
         } else if (typeof(navigator.webkitGetUserMedia) !== 'undefined') {
         } else if (typeof(navigator.webkitGetUserMedia) !== 'undefined') {
             return true;
             return true;
         }
         }
-        return SDL_FALSE;
+        return false;
     });
     });
 
 
     impl->HasCaptureSupport = capture_available ? SDL_TRUE : SDL_FALSE;
     impl->HasCaptureSupport = capture_available ? SDL_TRUE : SDL_FALSE;