Commit 707c11f64fe9b20ad725b49de5a8b6c7af7728ba

Ryan C. Gordon 2014-12-24T02:01:12

Patched to compile on non-Emscripten targets.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/test/loopwave.c b/test/loopwave.c
index 0967f3f..9d50aae 100644
--- a/test/loopwave.c
+++ b/test/loopwave.c
@@ -79,12 +79,14 @@ poked(int sig)
     done = 1;
 }
 
+#ifdef __EMSCRIPTEN__
 void
 loop()
 {
     if(done || (SDL_GetAudioStatus() != SDL_AUDIO_PLAYING))
         emscripten_cancel_main_loop();
 }
+#endif
 
 int
 main(int argc, char *argv[])