Ticket #5217: fstream.patch

File fstream.patch, 783 bytes (added by Andrey Semashev, 12 years ago)

The simple patch that fixes the problem

  • fstream.hpp

     
    2727//  on Windows, except for standard libaries known to have wchar_t overloads for
    2828//  file stream I/O, use path::string() to get a narrow character c_str()
    2929#if defined(BOOST_WINDOWS_API) \
    30   && !(defined(_CPPLIB_VER) && _CPPLIB_VER >= 405)  // not (Dinkumware with overloads)
     30  && !(defined(_CPPLIB_VER) && _CPPLIB_VER >= 405 && !defined(_STLPORT_VERSION))  // not (Dinkumware with overloads)
    3131# define BOOST_FILESYSTEM_C_STR string().c_str()  // use narrow, since wide not available
    3232#else  // use the native c_str, which will be narrow on POSIX, wide on Windows
    3333# define BOOST_FILESYSTEM_C_STR c_str()