Ticket #8352: boost_filesystem.diff

File boost_filesystem.diff, 1.2 KB (added by brad@…, 10 years ago)
  • libs/filesystem/src/path.cpp

     
    3939#ifdef BOOST_WINDOWS_API
    4040# include "windows_file_codecvt.hpp"
    4141# include <windows.h>
    42 #elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__)
     42#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) || \
     43   defined(__OpenBSD__)
    4344# include <boost/filesystem/detail/utf8_codecvt_facet.hpp>
    4445#endif
    4546
     
    817818# if defined(BOOST_WINDOWS_API)
    818819    std::locale global_loc = std::locale();
    819820    return std::locale(global_loc, new windows_file_codecvt);
    820 # elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__)
     821# elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) || \
     822    defined(__OpenBSD__)
    821823    // "All BSD system functions expect their string parameters to be in UTF-8 encoding
    822824    // and nothing else." See
    823825    // http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPInternational/Articles/FileEncodings.html