music_wav.c: remove C99'ism.
authorOzkan Sezer
Wed, 18 Dec 2019 15:51:40 +0300
changeset 109434c7e301904d
parent 1093 6f0bea2ab267
child 1095 0bb640cdd4ed
music_wav.c: remove C99'ism.
src/codecs/music_wav.c
     1.1 --- a/src/codecs/music_wav.c	Wed Dec 18 15:51:40 2019 +0300
     1.2 +++ b/src/codecs/music_wav.c	Wed Dec 18 15:51:40 2019 +0300
     1.3 @@ -881,8 +881,6 @@
     1.4      Sint64 next_chunk = 0;
     1.5      Sint64 file_length;
     1.6  
     1.7 -    file_length = SDL_RWsize(src);
     1.8 -
     1.9      /* AIFF magic header */
    1.10      Uint32 AIFFmagic;
    1.11      /* SSND chunk        */
    1.12 @@ -897,6 +895,8 @@
    1.13      Uint32 AIFCVersion1 = 0;
    1.14      Uint32 compressionType = 0;
    1.15  
    1.16 +    file_length = SDL_RWsize(src);
    1.17 +
    1.18      /* Check the magic header */
    1.19      chunk_length = SDL_ReadBE32(src);
    1.20      AIFFmagic = SDL_ReadLE32(src);