annotate DEPENDENCIES/generic/include/boost/iostreams/detail/config/codecvt.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
Chris@16 2 // (C) Copyright 2003-2007 Jonathan Turkanis
Chris@16 3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
Chris@16 5
Chris@16 6 // See http://www.boost.org/libs/iostreams for documentation.
Chris@16 7
Chris@16 8 #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_CODECVT_HPP_INCLUDED
Chris@16 9 #define BOOST_IOSTREAMS_DETAIL_CONFIG_CODECVT_HPP_INCLUDED
Chris@16 10
Chris@16 11 #include <boost/config.hpp>
Chris@16 12 #include <boost/detail/workaround.hpp>
Chris@16 13 #include <boost/iostreams/detail/config/wide_streams.hpp>
Chris@16 14 #include <cstddef>
Chris@16 15
Chris@16 16 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
Chris@16 17 # pragma once
Chris@16 18 #endif
Chris@16 19
Chris@16 20 //------------------Support for codecvt with user-defined state types---------//
Chris@16 21
Chris@16 22 #if defined(__MSL_CPP__) || defined(__LIBCOMO__) || \
Chris@16 23 BOOST_WORKAROUND(_STLPORT_VERSION, <= 0x450) \
Chris@16 24 /**/
Chris@16 25 # define BOOST_IOSTREAMS_NO_PRIMARY_CODECVT_DEFINITION
Chris@16 26 #endif
Chris@16 27
Chris@16 28 #if defined(__GLIBCPP__) || defined(__GLIBCXX__) || \
Chris@16 29 BOOST_WORKAROUND(_STLPORT_VERSION, > 0x450) \
Chris@16 30 /**/
Chris@16 31 # define BOOST_IOSTREAMS_EMPTY_PRIMARY_CODECVT_DEFINITION
Chris@16 32 #endif
Chris@16 33
Chris@16 34 //------------------Check for codecvt ctor taking a reference count-----------//
Chris@16 35
Chris@16 36 #if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3205)) || \
Chris@16 37 BOOST_WORKAROUND(_STLPORT_VERSION, < 0x461) \
Chris@16 38 /**/
Chris@16 39 # define BOOST_IOSTREAMS_NO_CODECVT_CTOR_FROM_SIZE_T
Chris@16 40 #endif
Chris@16 41
Chris@16 42 //------------------Normalize codecvt::length---------------------------------//
Chris@16 43
Chris@16 44 #if !defined(__MSL_CPP__) && !defined(__LIBCOMO__) && \
Chris@16 45 (!defined(BOOST_RWSTD_VER) || BOOST_RWSTD_VER < 0x04010300) && \
Chris@16 46 (!defined(__MACH__) || !defined(__INTEL_COMPILER))
Chris@16 47 /**/
Chris@16 48 # define BOOST_IOSTREAMS_CODECVT_CV_QUALIFIER const
Chris@16 49 #else
Chris@16 50 # define BOOST_IOSTREAMS_CODECVT_CV_QUALIFIER
Chris@16 51 #endif
Chris@16 52
Chris@16 53 //------------------Check for codecvt::max_length-----------------------------//
Chris@16 54
Chris@16 55 #if BOOST_WORKAROUND(_STLPORT_VERSION, < 0x461)
Chris@16 56 # define BOOST_IOSTREAMS_NO_CODECVT_MAX_LENGTH
Chris@16 57 #endif
Chris@16 58
Chris@16 59 //------------------Put mbstate_t and codecvt in std--------------------------//
Chris@16 60
Chris@16 61 #ifndef BOOST_IOSTREAMS_NO_LOCALE
Chris@16 62 # include <locale>
Chris@16 63 #endif
Chris@16 64
Chris@16 65 // From Robert Ramey's version of utf8_codecvt_facet.
Chris@16 66 namespace std {
Chris@16 67
Chris@16 68 #if defined(__LIBCOMO__)
Chris@16 69 using ::mbstate_t;
Chris@16 70 #elif defined(BOOST_DINKUMWARE_STDLIB) && !defined(__BORLANDC__)
Chris@16 71 using ::mbstate_t;
Chris@16 72 #elif defined(__SGI_STL_PORT)
Chris@16 73 #elif defined(BOOST_NO_STDC_NAMESPACE)
Chris@16 74 using ::codecvt;
Chris@16 75 using ::mbstate_t;
Chris@16 76 #endif
Chris@16 77
Chris@16 78 } // End namespace std.
Chris@16 79
Chris@16 80 #endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_CODECVT_HPP_INCLUDED