Patched to compile on non-Emscripten targets.

main
Ryan C. Gordon 2014-12-24 02:01:12 -05:00
parent 77ccc412f5
commit 707c11f64f
1 changed files with 2 additions and 0 deletions

View File

@ -79,12 +79,14 @@ poked(int sig)
done = 1; done = 1;
} }
#ifdef __EMSCRIPTEN__
void void
loop() loop()
{ {
if(done || (SDL_GetAudioStatus() != SDL_AUDIO_PLAYING)) if(done || (SDL_GetAudioStatus() != SDL_AUDIO_PLAYING))
emscripten_cancel_main_loop(); emscripten_cancel_main_loop();
} }
#endif
int int
main(int argc, char *argv[]) main(int argc, char *argv[])