Patched to compile on pre-C99 compilers.

This commit is contained in:
Ryan C. Gordon
2013-07-05 01:31:02 -04:00
parent 81c892c83b
commit 962e55a308

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);