Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Patched to compile on pre-C99 compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 5, 2013
1 parent 5b750fd commit f27179a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/audio/SDL_audio.c
Expand Up @@ -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);
Expand Down

0 comments on commit f27179a

Please sign in to comment.