Boost logo

Boost-Commit :

From: technews_at_[hidden]
Date: 2007-12-22 18:40:22


Author: turkanis
Date: 2007-12-22 18:40:22 EST (Sat, 22 Dec 2007)
New Revision: 42249
URL: http://svn.boost.org/trac/boost/changeset/42249

Log:
compatibility with old Windows Platform SDK
Text files modified:
   branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp
==============================================================================
--- branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp (original)
+++ branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp 2007-12-22 18:40:22 EST (Sat, 22 Dec 2007)
@@ -157,6 +157,9 @@
 std::streamsize file_descriptor::write(const char_type* s, std::streamsize n)
 {
 #ifdef BOOST_IOSTREAMS_WINDOWS
+# ifndef INVALID_SET_FILE_POINTER
+# define INVALID_SET_FILE_POINTER ((DWORD)-1)
+# endif
     if (pimpl_->flags_ & impl::has_handle) {
         if (pimpl_->flags_ & impl::append) {
             DWORD const dwResult =


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