Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/data/fileio/MP3FileReader.cpp Tue Oct 18 14:04:06 2016 +0100 +++ b/data/fileio/MP3FileReader.cpp Tue Oct 18 15:54:56 2016 +0100 @@ -27,7 +27,7 @@ #include <iostream> #include <cstdlib> -#include <unistd.h> +//#include <unistd.h> #ifdef HAVE_ID3TAG #include <id3tag.h> @@ -37,6 +37,11 @@ #include <QFileInfo> +#ifdef _MSC_VER +#include <io.h> +#define open _open +#endif + MP3FileReader::MP3FileReader(FileSource source, DecodeMode decodeMode, CacheMode mode, sv_samplerate_t targetRate, bool normalised,