Patched to compile on non-Emscripten targets.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 24 Dec 2014 02:01:12 -0500
changeset 9280f33128b58c5d
parent 9279 e1d1b6479a14
child 9281 85246fbeeac1
Patched to compile on non-Emscripten targets.
test/loopwave.c
     1.1 --- a/test/loopwave.c	Sat Dec 13 02:40:52 2014 -0500
     1.2 +++ b/test/loopwave.c	Wed Dec 24 02:01:12 2014 -0500
     1.3 @@ -79,12 +79,14 @@
     1.4      done = 1;
     1.5  }
     1.6  
     1.7 +#ifdef __EMSCRIPTEN__
     1.8  void
     1.9  loop()
    1.10  {
    1.11      if(done || (SDL_GetAudioStatus() != SDL_AUDIO_PLAYING))
    1.12          emscripten_cancel_main_loop();
    1.13  }
    1.14 +#endif
    1.15  
    1.16  int
    1.17  main(int argc, char *argv[])