summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2014-05-11 15:30:35 -0400
committerSimon Howard2014-05-11 15:30:35 -0400
commit6c63460b5a401c1c211a563ef109659d350f6773 (patch)
tree3b367a2d976a79908109a210bba77b124ffdb626 /src
parent6487e1429d4a6626a1a2ee18826ffe3ece241305 (diff)
parent81163488c7e68222a2a46959623cfbc4ff49e95f (diff)
downloadchocolate-doom-6c63460b5a401c1c211a563ef109659d350f6773.tar.gz
chocolate-doom-6c63460b5a401c1c211a563ef109659d350f6773.tar.bz2
chocolate-doom-6c63460b5a401c1c211a563ef109659d350f6773.zip
Merge pull request #405 from alexey-lysiuk/fix_msvc_build
Fix build with MSVC2008
Diffstat (limited to 'src')
-rw-r--r--src/i_sdlmusic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/i_sdlmusic.c b/src/i_sdlmusic.c
index e7f0aacb..cf4a6b8b 100644
--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -275,6 +275,8 @@ static void ParseFlacFile(file_metadata_t *metadata, FILE *fs)
for (;;)
{
+ long pos = -1;
+
// Read METADATA_BLOCK_HEADER:
if (fread(header, 4, 1, fs) < 1)
{
@@ -285,7 +287,7 @@ static void ParseFlacFile(file_metadata_t *metadata, FILE *fs)
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;