Remove call to nonexistent member seekpos() of std::fpos in VS 2017 version 15.8 or later

This commit is contained in:
Larry-Hu 2018-06-27 21:21:31 -07:00 committed by Robert Osfield
parent aa5e25db8d
commit c1dfc39706

View File

@ -70,7 +70,9 @@ inline std::streampos STREAM_POS( const OSGA_Archive::pos_type pos )
inline OSGA_Archive::pos_type ARCHIVE_POS( const std::streampos & pos )
{
#if defined(_CPPLIB_VER)//newer Dinkumware(eg: one included with VC++ 2003,2005)
#if (defined(_CPPLIB_VER) && defined(_MSC_VER) && _MSC_VER > 1914) // VC++ 2017 version 15.8 or later
fpos_t position = pos;
#elif (defined(_CPPLIB_VER) && defined(_MSC_VER)) // Dinkumware (eg: one included with VC++ 2003, 2005...)
fpos_t position = pos.seekpos();
#else // older Dinkumware (eg: one included in Win Server 2003 Platform SDK )
fpos_t position = pos.get_fpos_t();