Patched to compile on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 26 Feb 2017 00:56:13 -0500
changeset 10917ef690a414f18
parent 10916 bade97ed25ac
child 10918 377c52085fef
Patched to compile on C89 compilers.
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Sun Feb 26 00:54:45 2017 -0500
     1.2 +++ b/src/audio/SDL_audio.c	Sun Feb 26 00:56:13 2017 -0500
     1.3 @@ -687,8 +687,9 @@
     1.4              SDL_AudioStreamPut(device->stream, data, data_len);
     1.5  
     1.6              while (SDL_AudioStreamAvailable(device->stream) >= ((int) device->spec.size)) {
     1.7 +                int got;
     1.8                  data = SDL_AtomicGet(&device->enabled) ? current_audio.impl.GetDeviceBuf(device) : NULL;
     1.9 -                const int got = SDL_AudioStreamGet(device->stream, data ? data : device->work_buffer, device->spec.size);
    1.10 +                got = SDL_AudioStreamGet(device->stream, data ? data : device->work_buffer, device->spec.size);
    1.11                  SDL_assert((got < 0) || (got == device->spec.size));
    1.12  
    1.13                  if (data == NULL) {  /* device is having issues... */