Skip to content

Commit

Permalink
Merged revision(s) 20328 from trunk/OpenMPT:
Browse files Browse the repository at this point in the history
[Fix] Compile fix.
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.31@20329 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Mar 15, 2024
1 parent 6eb47e7 commit b0a7f82
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 @@ -44,6 +44,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 @@ -100,13 +106,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 b0a7f82

Please sign in to comment.