|
Boost-Commit : |
From: technews_at_[hidden]
Date: 2008-01-11 14:17:17
Author: turkanis
Date: 2008-01-11 14:17:16 EST (Fri, 11 Jan 2008)
New Revision: 42685
URL: http://svn.boost.org/trac/boost/changeset/42685
Log:
replaced Dinkumware macro _FPOSOFF with static cast to streamoff, for platforms where sizeof(long) == 4 and sizeof(streamoff) == 8, such as IBM Visual Age on AIX with -qlonglong -D_LARGE_FILES
Text files modified:
branches/iostreams_dev/boost/iostreams/positioning.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: branches/iostreams_dev/boost/iostreams/positioning.hpp
==============================================================================
--- branches/iostreams_dev/boost/iostreams/positioning.hpp (original)
+++ branches/iostreams_dev/boost/iostreams/positioning.hpp 2008-01-11 14:17:16 EST (Fri, 11 Jan 2008)
@@ -89,7 +89,9 @@
{
return fpos_t_to_offset(streampos_to_fpos_t(pos)) +
static_cast<stream_offset>(static_cast<std::streamoff>(pos)) -
- static_cast<stream_offset>(_FPOSOFF(streampos_to_fpos_t(pos)));
+ static_cast<stream_offset>(
+ static_cast<std::streamoff>(streampos_to_fpos_t(pos))
+ );
}
# endif // # ifndef BOOST_IOSTREAMS_HAS_DINKUMWARE_FPOS
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk