Patched to compile on pre-C99 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 05 Jul 2013 01:31:02 -0400
changeset 734850b6e7a26ba3
parent 7347 b4f6a86e8523
child 7349 a96c85910792
Patched to compile on pre-C99 compilers.
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Fri Jul 05 01:18:18 2013 -0400
     1.2 +++ b/src/audio/SDL_audio.c	Fri Jul 05 01:31:02 2013 -0400
     1.3 @@ -1172,11 +1172,12 @@
     1.4  void
     1.5  SDL_AudioQuit(void)
     1.6  {
     1.7 +    SDL_AudioDeviceID i;
     1.8 +
     1.9      if (!current_audio.name) {  /* not initialized?! */
    1.10          return;
    1.11      }
    1.12  
    1.13 -    SDL_AudioDeviceID i;
    1.14      for (i = 0; i < SDL_arraysize(open_devices); i++) {
    1.15          if (open_devices[i] != NULL) {
    1.16              SDL_CloseAudioDevice(i);