Skip to content

Commit

Permalink
[Fix] Compile fix.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20328 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Mar 15, 2024
1 parent dfb431e commit 1241a54
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/mpt/io_read/filereader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ namespace FileReader {



// change to show warnings for functions which trigger pre-caching the whole file for unseekable streams
//#define MPT_FILEREADER_DEPRECATED [[deprecated]]
#define MPT_FILEREADER_DEPRECATED



// TFileCursor members begin

template <typename TFileCursor>
Expand Down Expand Up @@ -101,13 +107,13 @@ bool HasFastGetLength(const TFileCursor & f) {

// Returns size of the mapped file in bytes.
template <typename TFileCursor>
MPT_FILECURSOR_DEPRECATED typename TFileCursor::pos_type GetLength(const TFileCursor & f) {
MPT_FILEREADER_DEPRECATED typename TFileCursor::pos_type GetLength(const TFileCursor & f) {
return f.GetLength();
}

// Return byte count between cursor position and end of file, i.e. how many bytes can still be read.
template <typename TFileCursor>
MPT_FILECURSOR_DEPRECATED typename TFileCursor::pos_type BytesLeft(const TFileCursor & f) {
MPT_FILEREADER_DEPRECATED typename TFileCursor::pos_type BytesLeft(const TFileCursor & f) {
return f.BytesLeft();
}

Expand Down

0 comments on commit 1241a54

Please sign in to comment.