Mercurial > hg > svcore
comparison data/fileio/MP3FileReader.cpp @ 1218:6b847a59d908 msvc2015_64
MSVC build fixes
author | Chris Cannam |
---|---|
date | Tue, 18 Oct 2016 15:54:56 +0100 |
parents | 134ce7667256 |
children | 794b64e62e58 |
comparison
equal
deleted
inserted
replaced
1217:046f05fa31f3 | 1218:6b847a59d908 |
---|---|
25 #include <fcntl.h> | 25 #include <fcntl.h> |
26 | 26 |
27 #include <iostream> | 27 #include <iostream> |
28 | 28 |
29 #include <cstdlib> | 29 #include <cstdlib> |
30 #include <unistd.h> | 30 //#include <unistd.h> |
31 | 31 |
32 #ifdef HAVE_ID3TAG | 32 #ifdef HAVE_ID3TAG |
33 #include <id3tag.h> | 33 #include <id3tag.h> |
34 #endif | 34 #endif |
35 | 35 |
36 //#define DEBUG_ID3TAG 1 | 36 //#define DEBUG_ID3TAG 1 |
37 | 37 |
38 #include <QFileInfo> | 38 #include <QFileInfo> |
39 | |
40 #ifdef _MSC_VER | |
41 #include <io.h> | |
42 #define open _open | |
43 #endif | |
39 | 44 |
40 MP3FileReader::MP3FileReader(FileSource source, DecodeMode decodeMode, | 45 MP3FileReader::MP3FileReader(FileSource source, DecodeMode decodeMode, |
41 CacheMode mode, sv_samplerate_t targetRate, | 46 CacheMode mode, sv_samplerate_t targetRate, |
42 bool normalised, | 47 bool normalised, |
43 ProgressReporter *reporter) : | 48 ProgressReporter *reporter) : |