Skip to content

Commit

Permalink
Patched to compile on C89 compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 26, 2017
1 parent 4d525d4 commit a4249b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/audio/SDL_audio.c
Expand Up @@ -687,8 +687,9 @@ SDL_RunAudio(void *devicep)
SDL_AudioStreamPut(device->stream, data, data_len);

while (SDL_AudioStreamAvailable(device->stream) >= ((int) device->spec.size)) {
int got;
data = SDL_AtomicGet(&device->enabled) ? current_audio.impl.GetDeviceBuf(device) : NULL;
const int got = SDL_AudioStreamGet(device->stream, data ? data : device->work_buffer, device->spec.size);
got = SDL_AudioStreamGet(device->stream, data ? data : device->work_buffer, device->spec.size);
SDL_assert((got < 0) || (got == device->spec.size));

if (data == NULL) { /* device is having issues... */
Expand Down

0 comments on commit a4249b4

Please sign in to comment.