]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/serialization/include/boost/archive/detail/utf8_codecvt_facet.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / serialization / include / boost / archive / detail / utf8_codecvt_facet.hpp
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
7 #ifndef BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP
8 #define BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP
9
10 #include <boost/config.hpp>
11
12 // std::codecvt_utf8 doesn't seem to work for msvc
13 // versions prior to MSVC 14.0
14
15 #if defined(_MSC_VER) && _MSC_VER < 1900 \
16 || defined( BOOST_NO_CXX11_HDR_CODECVT )
17 #include <boost/archive/detail/decl.hpp>
18 #define BOOST_UTF8_BEGIN_NAMESPACE \
19 namespace boost { namespace archive { namespace detail {
20 #define BOOST_UTF8_DECL BOOST_ARCHIVE_DECL
21 #define BOOST_UTF8_END_NAMESPACE }}}
22
23 #include <boost/detail/utf8_codecvt_facet.hpp>
24
25 #undef BOOST_UTF8_END_NAMESPACE
26 #undef BOOST_UTF8_DECL
27 #undef BOOST_UTF8_BEGIN_NAMESPACE
28 #else
29 #include <codecvt>
30 namespace boost { namespace archive { namespace detail {
31 typedef std::codecvt_utf8<wchar_t> utf8_codecvt_facet;
32 } } }
33 #endif // BOOST_NO_CXX11_HDR_CODECVT
34 #endif // BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP