Patched to compile on pre-C99 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 05 Jul 2013 01:31:02 -0400
changeset 7348 50b6e7a26ba3
parent 7347 b4f6a86e8523
child 7349 a96c85910792
Patched to compile on pre-C99 compilers.
src/audio/SDL_audio.c
--- a/src/audio/SDL_audio.c	Fri Jul 05 01:18:18 2013 -0400
+++ b/src/audio/SDL_audio.c	Fri Jul 05 01:31:02 2013 -0400
@@ -1172,11 +1172,12 @@
 void
 SDL_AudioQuit(void)
 {
+    SDL_AudioDeviceID i;
+
     if (!current_audio.name) {  /* not initialized?! */
         return;
     }
 
-    SDL_AudioDeviceID i;
     for (i = 0; i < SDL_arraysize(open_devices); i++) {
         if (open_devices[i] != NULL) {
             SDL_CloseAudioDevice(i);