From: <sv...@op...> - 2024-03-15 07:50:01
|
Author: manx Date: Fri Mar 15 08:49:40 2024 New Revision: 20328 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20328 Log: [Fix] Compile fix. Modified: trunk/OpenMPT/src/mpt/io_read/filereader.hpp Modified: trunk/OpenMPT/src/mpt/io_read/filereader.hpp ============================================================================== --- trunk/OpenMPT/src/mpt/io_read/filereader.hpp Fri Mar 15 08:39:42 2024 (r20327) +++ trunk/OpenMPT/src/mpt/io_read/filereader.hpp Fri Mar 15 08:49:40 2024 (r20328) @@ -45,6 +45,12 @@ +// 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> @@ -101,13 +107,13 @@ // 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(); } |