From 9bb82b54a9ee87f846f1d08697b84da35612efc6 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Tue, 31 Oct 2017 09:52:28 +0100 Subject: [PATCH] Use BAMTOOLS_LFS macros for Windows compatibility --- src/utils/bamtools_fasta.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/bamtools_fasta.cpp b/src/utils/bamtools_fasta.cpp index a4818047..be55c436 100644 --- a/src/utils/bamtools_fasta.cpp +++ b/src/utils/bamtools_fasta.cpp @@ -175,7 +175,7 @@ bool Fasta::FastaPrivate::CreateIndex(const std::string& indexFilename) FastaIndexData data; // store file offset of beginning of DNA sequence (after header) - data.Offset = ftello(Stream); + data.Offset = ftell64(Stream); // parse header, store sequence name in data.Name if (!GetNameFromHeader(header, data.Name)) { @@ -430,7 +430,7 @@ bool Fasta::FastaPrivate::GetSequence(const int& refId, const int& start, const } // seek to beginning of sequence data - if (fseeko(Stream, referenceData.Offset, SEEK_SET) != 0) { + if (fseek64(Stream, referenceData.Offset, SEEK_SET) != 0) { std::cerr << "FASTA error : could not sek in file" << std::endl; return false; } @@ -571,7 +571,7 @@ bool Fasta::FastaPrivate::Open(const std::string& filename, const std::string& i bool Fasta::FastaPrivate::Rewind() { if (!IsOpen) return false; - return (fseeko(Stream, 0, SEEK_SET) == 0); + return (fseek64(Stream, 0, SEEK_SET) == 0); } bool Fasta::FastaPrivate::WriteIndexData()