123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_CODECVT_HPP_INCLUDED
- #define BOOST_IOSTREAMS_DETAIL_CONFIG_CODECVT_HPP_INCLUDED
- #include <boost/config.hpp>
- #include <boost/detail/workaround.hpp>
- #include <boost/iostreams/detail/config/wide_streams.hpp>
- #include <cstddef>
- #if defined(_MSC_VER)
- # pragma once
- #endif
- #if defined(__MSL_CPP__) || defined(__LIBCOMO__) || \
- BOOST_WORKAROUND(_STLPORT_VERSION, <= 0x450) || \
- defined(_LIBCPP_VERSION) \
-
- # define BOOST_IOSTREAMS_NO_PRIMARY_CODECVT_DEFINITION
- #endif
- #if defined(__GLIBCPP__) || defined(__GLIBCXX__) || \
- BOOST_WORKAROUND(_STLPORT_VERSION, > 0x450) \
-
- # define BOOST_IOSTREAMS_EMPTY_PRIMARY_CODECVT_DEFINITION
- #endif
- #if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3205)) || \
- BOOST_WORKAROUND(_STLPORT_VERSION, < 0x461) \
-
- # define BOOST_IOSTREAMS_NO_CODECVT_CTOR_FROM_SIZE_T
- #endif
- #if !defined(__MSL_CPP__) && !defined(__LIBCOMO__) && !defined(__clang__) && \
- (!defined(BOOST_RWSTD_VER) || BOOST_RWSTD_VER < 0x04010300) && \
- (!defined(__MACH__) || !defined(__INTEL_COMPILER))
-
- # define BOOST_IOSTREAMS_CODECVT_CV_QUALIFIER const
- #else
- # define BOOST_IOSTREAMS_CODECVT_CV_QUALIFIER
- #endif
- #if BOOST_WORKAROUND(_STLPORT_VERSION, < 0x461)
- # define BOOST_IOSTREAMS_NO_CODECVT_MAX_LENGTH
- #endif
-
- #ifndef BOOST_IOSTREAMS_NO_LOCALE
- # include <locale>
- #endif
- namespace std {
- #if defined(__LIBCOMO__)
- using ::mbstate_t;
- #elif defined(BOOST_DINKUMWARE_STDLIB) && !defined(BOOST_BORLANDC)
- using ::mbstate_t;
- #elif defined(__SGI_STL_PORT)
- #elif defined(BOOST_NO_STDC_NAMESPACE)
- using ::codecvt;
- using ::mbstate_t;
- #endif
- }
- #endif
|