utf8_codecvt_facet.hpp 966 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2001 Ronald Garcia, Indiana University (garcia@osl.iu.edu)
  2. // Andrew Lumsdaine, Indiana University (lums@osl.iu.edu).
  3. // Distributed under the Boost Software License, Version 1.0. (See
  4. // accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #ifndef BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP
  7. #define BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP
  8. #include <boost/config.hpp>
  9. #ifdef BOOST_NO_STD_WSTREAMBUF
  10. #error "wide char i/o not supported on this platform"
  11. #endif
  12. // use boost's utf8 codecvt facet
  13. #include <boost/archive/detail/decl.hpp>
  14. #define BOOST_UTF8_BEGIN_NAMESPACE \
  15. namespace boost { namespace archive { namespace detail {
  16. #define BOOST_UTF8_DECL BOOST_ARCHIVE_DECL
  17. #define BOOST_UTF8_END_NAMESPACE }}}
  18. #include <boost/detail/utf8_codecvt_facet.hpp>
  19. #undef BOOST_UTF8_END_NAMESPACE
  20. #undef BOOST_UTF8_DECL
  21. #undef BOOST_UTF8_BEGIN_NAMESPACE
  22. #endif // BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP