ref: a0298b951abc1468616fed1f248ae83b5bb50550
parent: 6487e1429d4a6626a1a2ee18826ffe3ece241305
author: alexey.lysiuk <[email protected]>
date: Sun May 11 11:49:28 EDT 2014
Fix compilation with MSVC2008
--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -275,6 +275,8 @@
for (;;)
{
+ long pos = -1;
+
// Read METADATA_BLOCK_HEADER:
if (fread(header, 4, 1, fs) < 1)
{
@@ -285,7 +287,7 @@
last_block = (header[0] & 0x80) != 0;
block_len = (header[1] << 16) | (header[2] << 8) | header[3];
- long pos = ftell(fs);
+ pos = ftell(fs);
if (pos < 0)
{
return;