Skip to content
Permalink
Browse files

Patched to compile on C89 compilers.

  • Loading branch information
icculus committed Feb 26, 2017
1 parent 4d525d4 commit a4249b48ee452f1595adb916f5b57bc8b365962f
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/audio/SDL_audio.c
@@ -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... */

0 comments on commit a4249b4

Please sign in to comment.