summaryrefslogtreecommitdiff
path: root/build/lib.mk
diff options
context:
space:
mode:
authornu774 <honeycomb77@gmail.com>2012-12-27 21:44:38 +0900
committerErik de Castro Lopo <erikd@mega-nerd.com>2012-12-28 11:31:35 +1100
commit0da96d3cfd13931439324785ca1b89bb788a4a49 (patch)
tree0c69b9b7f1050babcafdf1e43aff683f13db9b4c /build/lib.mk
parent55788ea96b6f71300bccfee2e6a8645e83be9768 (diff)
downloadflac-0da96d3cfd13931439324785ca1b89bb788a4a49.tar.gz
Fix to allow the flac command to parse piped WAV input with
WAVEFORMATEXTENSIBLE format. MinGW's fseeko() doesn't return error for the attempt to seek on non seekable file (same behavior as MSVC). The simplest solution would be to change #ifdef _MSC_VER to #ifdef _WIN32 here. Instead, this patch tests file with fstat(), and use fseeko() only when it is a regular file. This is confirmed to work properly both on MSVC and MinGW, can seek if stdin is a redirected regular file, and doesn't require #ifdef. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Diffstat (limited to 'build/lib.mk')
0 files changed, 0 insertions, 0 deletions