Patched to compile on pre-C99 compilers.

This commit is contained in:
Ryan C. Gordon 2013-07-05 01:31:02 -04:00
parent 65a277c322
commit 0634073030

View file

@ -1172,11 +1172,12 @@ SDL_CloseAudio(void)
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);